diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fae6648c8..545d8d3398 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## v0.x.x Unreleased ### New features -* Added `to_zarr` and `from_zarr` methods to InferenceData ([1518](https://github.com/arviz-devs/arviz/pull/1535)) +* Added `to_zarr` and `from_zarr` methods to InferenceData ([1518](https://github.com/arviz-devs/arviz/pull/1518)) * Added confidence interval band to auto-correlation plot ([1535](https://github.com/arviz-devs/arviz/pull/1535)) ### Maintenance and fixes @@ -17,6 +17,7 @@ ### Documentation * Added an example for converting dataframe to InferenceData ([1556](https://github.com/arviz-devs/arviz/pull/1556)) +* Added example for `coords` argument in `plot_posterior` docstring ([1566](https://github.com/arviz-devs/arviz/pull/1566)) ## v0.11.1 (2021 Feb 2) ### Maintenance and fixes diff --git a/arviz/plots/posteriorplot.py b/arviz/plots/posteriorplot.py index 5491e30322..ec6585dbf5 100644 --- a/arviz/plots/posteriorplot.py +++ b/arviz/plots/posteriorplot.py @@ -149,6 +149,13 @@ def plot_posterior( >>> rope = {'mu': [{'rope': (-2, 2)}], 'theta': [{'school': 'Choate', 'rope': (2, 4)}]} >>> az.plot_posterior(data, var_names=['mu', 'theta'], rope=rope) + Using `coords` argument to plot only a subset of data + + .. plot:: + :context: close-figs + + >>> coords = {"school": ["Choate","Phillips Exeter"]} + >>> az.plot_posterior(data, var_names=["mu", "theta"], coords=coords) Add reference lines diff --git a/doc/source/getting_started/CreatingInferenceData.ipynb b/doc/source/getting_started/CreatingInferenceData.ipynb index ba86d2c9ff..df0b15e8ee 100644 --- a/doc/source/getting_started/CreatingInferenceData.ipynb +++ b/doc/source/getting_started/CreatingInferenceData.ipynb @@ -29507,4 +29507,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file