Ridgeplot#
See also
API Documentation: plot_forest()
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",
)