arviz_plots.PlotCollection.grid#
- classmethod PlotCollection.grid(data, cols=None, rows=None, backend=None, plot_grid_kws=None, **kwargs)[source]#
Instatiate a PlotCollection and generate a plot grid iterating over rows and columns.
- Parameters:
- data
xarray.Dataset
ordict
of {str:xarray.Dataset
} If
data
is a dictionary, the Datasets stored as its values will be concatenated, creating a new dimension calledmodel
.- cols, rowsiterable of hashable, optional
Dimensions of the dataset for which different coordinate values should have different plots. A special dimension called
__variable__
is also available, to indicate that each variable of the input Dataset should have their own plot; it can also be combined with other dimensions.The generated grid will have as many plots as unique combinations of values within cols and rows.
- backend
str
, optional Plotting backend.
- plot_grid_kwsmapping, optional
Passed to
create_plotting_grid
of the chosen plotting backend.- **kwargsmapping, optional
Passed as is to the initializer of
PlotCollection
. That is, used foraes
and**kwargs
arguments. Seegenerate_aes_dt
for more details about these arguments.
- data
See also