API documentation: plot_forest()
plot_forest()
Python source code: [download source: matplotlib/mpl_plot_forest.py]
[download source: matplotlib/mpl_plot_forest.py]
import matplotlib.pyplot as plt import arviz as az az.style.use("arviz-darkgrid") centered_data = az.load_arviz_data("centered_eight") non_centered_data = az.load_arviz_data("non_centered_eight") axes = az.plot_forest( [centered_data, non_centered_data], model_names=["Centered", "Non Centered"], var_names=["mu"] ) axes[0].set_title("Estimated theta for eight schools model") plt.show()
Python source code: [download source: bokeh/bokeh_plot_forest.py]
[download source: bokeh/bokeh_plot_forest.py]
import arviz as az centered_data = az.load_arviz_data("centered_eight") non_centered_data = az.load_arviz_data("non_centered_eight") ax = az.plot_forest( [centered_data, non_centered_data], model_names=["Centered", "Non Centered"], var_names=["mu"], backend="bokeh", )