Ridgeplot#

See also

API Documentation: plot_forest()

../_images/mpl_plot_forest_ridge.png
import matplotlib.pyplot as plt

import arviz as az

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

rugby_data = az.load_arviz_data("rugby")
axes = az.plot_forest(
    rugby_data,
    kind="ridgeplot",
    var_names=["defs"],
    linewidth=4,
    combined=True,
    ridgeplot_overlap=1.5,
    figsize=(11.5, 5),
)
axes[0].set_title("Relative defensive strength\nof Six Nation rugby teams")

plt.show()
import arviz as az

rugby_data = az.load_arviz_data("rugby")
ax = az.plot_forest(
    rugby_data,
    kind="ridgeplot",
    var_names=["defs"],
    linewidth=4,
    combined=True,
    ridgeplot_overlap=1.5,
    colors="blue",
    figsize=(9, 4),
    backend="bokeh",
)