dynode.utils.vis_utils.plot_violin_plots#
- dynode.utils.vis_utils.plot_violin_plots(priors: dict[str, list] | None = None, posteriors: dict[str, list] | None = None, matplotlib_style: list[str] | str = ['seaborn-v0_8-colorblind'])#
Save violin plot of priors and posteriors together.
Parameters#
- priorsdict[str, list], optional
samples from a parameter’s prior distribution, by default None
- posteriorsdict[str, list], optional
samples from a parameter’s posterior distribution, by default None
- matplotlib_stylelist[str] | str, optional
matplotlib style(s) to apply, by default [ “seaborn-v0_8-colorblind”,]
Returns#
- matplotlib.Figure
matplotlib Figure containing violin plots of the priors and posteriors.
Raises#
- VisualizationError
if both priors and posteriors is None there is nothing to plot.
Notes#
Returned figure will be roughly square containing N subplots for N parameters.
If some parameters are missing in either dictionary, an open space in that subplot will be left in the figure.