xarray.DataArray.plot¶
-
DataArray.
plot
(row=None, col=None, col_wrap=None, ax=None, hue=None, rtol=0.01, subplot_kws=None, **kwargs)¶ Default plot of DataArray using matplotlib.pyplot.
Calls xarray plotting function based on the dimensions of darray.squeeze()
Dimensions
Plotting function
1
2
Anything else
- Parameters
darray (
DataArray
)row (
str
, optional) – If passed, make row faceted plots on this dimension namecol (
str
, optional) – If passed, make column faceted plots on this dimension namehue (
str
, optional) – If passed, make faceted line plots with hue on this dimension namecol_wrap (
int
, optional) – Use together withcol
to wrap faceted plotsax (
matplotlib.axes.Axes
, optional) – If None, uses the current axis. Not applicable when using facets.rtol (
float
, optional) – Relative tolerance used to determine if the indexes are uniformly spaced. Usually a small positive number.subplot_kws (
dict
, optional) – Dictionary of keyword arguments for matplotlib subplots.**kwargs (optional) – Additional keyword arguments to matplotlib