-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add plot_psense_dist * Update src/arviz_plots/plots/psensedistplot.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Update src/arviz_plots/plots/psensedistplot.py Co-authored-by: Oriol Abril-Pla <[email protected]> * concat da and simplify logic * set sample_dims to sample * refactor * minor fixes and update pyproject to install from GH * support sample_dims argument and all backends * add minigallery to docstring * tweak example * ensure pointinterval only plot does not have yticks * add initial test for psense plot * add test and example * fix test * fix docstring * rename __group__ --------- Co-authored-by: Oriol Abril-Pla <[email protected]>
- Loading branch information
1 parent
71223f5
commit 2758b92
Showing
12 changed files
with
479 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
# Power scaling prior sensitivity plot | ||
Plot of power scaling prior sensitivity distribution | ||
--- | ||
:::{seealso} | ||
API Documentation: {func}`~arviz_plots.plot_psense_dist` | ||
::: | ||
""" | ||
from arviz_base import load_arviz_data | ||
|
||
import arviz_plots as azp | ||
|
||
azp.style.use("arviz-clean") | ||
|
||
idata = load_arviz_data("rugby") | ||
pc = azp.plot_psense_dist( | ||
idata, | ||
var_names=["defs", "sd_att", "sd_def"], | ||
coords={"team": ["Scotland", "Wales"]}, | ||
pc_kwargs={"y": [-2, -1, 0]}, | ||
backend="none", | ||
) | ||
pc.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.