Violin plotΒΆ

../../_images/mpl_plot_violin.png

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

API documentation: plot_violin()

import matplotlib.pyplot as plt

import arviz as az

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

data = az.load_arviz_data("non_centered_eight")
az.plot_violin(data, var_names=["mu", "tau"])

plt.show()