arviz_plots.PlotCollection.grid#
- classmethod PlotCollection.grid(data, cols=None, rows=None, backend=None, figure_kwargs=None, **kwargs)[source]#
Instatiate a PlotCollection and generate a plot grid iterating over rows and columns.
- Parameters:
- data
xarray.Datasetordictof {str:xarray.Dataset} If
datais 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.
- figure_kwargsmapping, optional
Passed to
create_plotting_gridof the chosen plotting backend.- **kwargsmapping, optional
Passed as is to the initializer of
PlotCollection. That is, used foraesand**kwargsarguments. Seegenerate_aes_dtfor more details about these arguments.
- data
See also