Posterior PlotΒΆ

../../_images/mpl_plot_posterior.png

Python source code: [download source: mpl_plot_posterior.py]

API documentation: plot_posterior()

import matplotlib.pyplot as plt

import arviz as az

az.style.use("arviz-darkgrid")

data = az.load_arviz_data("centered_eight")

coords = {"school": ["Choate"]}
az.plot_posterior(data, var_names=["mu", "theta"], coords=coords, rope=(-1, 1))

plt.show()