In [1]:
import arviz as az
In [2]:
data = az.load_arviz_data("centered_eight")
In [3]:
az.backends.output_file("three_column_plot.html")
In [4]:
az.rcParams
Out[4]:
RcParams({'data.http_protocol': 'https',
          'data.index_origin': 0,
          'data.load': 'lazy',
          'plot.backend': 'matplotlib',
          'plot.bokeh.bounds_x_range': 'auto',
          'plot.bokeh.bounds_y_range': 'auto',
          'plot.bokeh.figure.dpi': 60,
          'plot.bokeh.figure.height': 500,
          'plot.bokeh.figure.width': 500,
          'plot.bokeh.layout.order': 'default',
          'plot.bokeh.layout.sizing_mode': 'fixed',
          'plot.bokeh.layout.toolbar_location': 'above',
          'plot.bokeh.marker': 'Cross',
          'plot.bokeh.output_backend': 'webgl',
          'plot.bokeh.show': True,
          'plot.bokeh.tools': 'reset,pan,box_zoom,wheel_zoom,lasso_select,undo,save,hover',
          'plot.matplotlib.constrained_layout': True,
          'plot.matplotlib.show': False,
          'plot.max_subplots': 40,
          'plot.point_estimate': 'mean',
          'stats.credible_interval': 0.94,
          'stats.ic_scale': 'log',
          'stats.information_criterion': 'loo'})
In [5]:
# {'column', 'square', 'default', 'row', 'square_trimmed'} or regex {'\\d*row', '\\d*column'}
In [6]:
az.rcParams["plot.bokeh.layout.order"] = "3column"
In [7]:
# {'stretch_width', 'scale_width', 'stretch_both', 'stretch_height', 'scale_height', 'fixed', 'scale_both'}
In [8]:
az.rcParams["plot.bokeh.layout.sizing_mode"] = "scale_width"
In [9]:
az.rcParams["plot.max_subplots"] = 100
In [10]:
az.rcParams["plot.backend"] = "bokeh"
In [13]:
axes = az.plot_pair(data, show=False, divergences=True, backend_kwargs={"width" : 300, "height" : 300})
In [14]:
az.backends.show_layout(axes, show=True)
In [ ]: