Skip to content

Commit

Permalink
Merge pull request #300 from tpvasconcelos/here-image
Browse files Browse the repository at this point in the history
Update hero image
  • Loading branch information
tpvasconcelos authored Dec 24, 2024
2 parents 88b9663 + a960df1 commit 2634507
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 5 deletions.
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

0 comments on commit 2634507

Please sign in to comment.