Python source code: [download source: bokeh_plot_density.py]
[download source: bokeh_plot_density.py]
API documentation: plot_density()
plot_density()
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_density( [centered_data, non_centered_data], data_labels=["Centered", "Non Centered"], var_names=["theta"], shade=0.1, backend="bokeh", )