Skip to content

Update hero image #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cicd_utils/ridgeplot_examples/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,5 @@ def to_json(self, path: Path, sig_figs: int) -> None:
if not path.exists():
path.mkdir(parents=True)
out_path = path / f"{self.plot_id}.json"
out_path.write_text(self.fig.to_json(), "utf-8")
json_txt = f"{self.fig.to_json()}\n"
out_path.write_text(json_txt, "utf-8")
2 changes: 1 addition & 1 deletion cicd_utils/ridgeplot_examples/_basic_hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main() -> go.Figure:
from ridgeplot import ridgeplot

rng = np.random.default_rng(42)
my_samples = [rng.normal(n / 1.2, size=600) for n in range(7, 0, -1)]
my_samples = [rng.normal(n / 1.2, size=600) for n in range(6, 0, -1)]
fig = ridgeplot(samples=my_samples, nbins=20)
fig.update_layout(height=350, width=800)

Expand Down
Binary file modified docs/_static/img/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/img/hero2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/img/hero3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/img/logo-wide-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/img/logo-wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/img/probly_original.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ title: beautiful ridgeline plots in Python

`ridgeplot` is a Python package that provides a simple interface for plotting beautiful and interactive [ridgeline plots](getting_started/getting_started.md) within the extensive [Plotly](https://plotly.com/python/) ecosystem.

![ridgeplot - beautiful ridgeline plots in Python](_static/img/hero.png){align=center w=800px}
![ridgeplot - beautiful ridgeline plots in Python](_static/img/hero2.png){align=center w=800px}

<h2>Installation</h2>

Expand Down
1 change: 1 addition & 0 deletions docs/reference/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Unreleased changes
### Documentation

- Use `sphinxcontrib.apidoc` to automatically generate API docs from the source code ({gh-pr}`296`)
- Update hero image in the docs' landing page ({gh-pr}`300`)

---

Expand Down
Binary file modified tests/e2e/artifacts/basic_hist.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/e2e/artifacts/basic_hist.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ commands =
make clean-docs
live: make --directory=docs livehtml
static: make --directory=docs html
python "cicd_utils/cicd/scripts/open_in_browser.py" "docs/build/html/index.html"
python "cicd_utils/cicd/scripts/open_in_browser.py" "docs/_build/html/index.html"

[testenv:release-notes]
description = extract release notes from docs/reference/changelog.md
Expand Down
Loading