Skip to content
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

Adding Plot ESS Evolution #71

Merged
merged 2 commits into from
Oct 17, 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 docs/source/api/plots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ A complementary introduction and guide to ``plot_...`` functions is available at
plot_compare
plot_dist
plot_ess
plot_ess_evolution
plot_forest
plot_ridge
plot_trace
plot_trace_dist
plot_trace_dist
1 change: 1 addition & 0 deletions docs/source/api/visuals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Data plotting elements
line_x
scatter_xy
scatter_x
scatter_xy
ecdf_line
hist

Expand Down
21 changes: 21 additions & 0 deletions docs/source/gallery/inference_diagnostics/plot_ess_evolution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
# ESS Evolution plot

Facetted plot with ESS 'bulk' and 'tail' for each variable

---

:::{seealso}
API Documentation: {func}`~arviz_plots.plot_ess_evolution`
:::
"""

from arviz_base import load_arviz_data

import arviz_plots as azp

azp.style.use("arviz-clean")

data = load_arviz_data("centered_eight")
pc = azp.plot_ess_evolution(data, backend="none") # change to preferred backend
pc.show()
2 changes: 1 addition & 1 deletion docs/sphinxext/gallery_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def main(app):

index_page = ["(example_gallery)=\n# Example gallery"]
backreferences = defaultdict(list)
api_regex = re.compile(r"azp\.(plot_[a-z]+)\(")
api_regex = re.compile(r"azp\.(plot_[a-z_]+)\(")

for folder, title in dir_title_map.items():
category_dir = gallery_dir / folder
Expand Down
2 changes: 2 additions & 0 deletions src/arviz_plots/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .compareplot import plot_compare
from .distplot import plot_dist
from .essplot import plot_ess
from .evolutionplot import plot_ess_evolution
from .forestplot import plot_forest
from .ridgeplot import plot_ridge
from .tracedistplot import plot_trace_dist
Expand All @@ -15,5 +16,6 @@
"plot_trace",
"plot_trace_dist",
"plot_ess",
"plot_ess_evolution",
"plot_ridge",
]
Loading