xarray.DataArray.plot
xarray.DataArray.plot#
- DataArray.plot(row=None, col=None, col_wrap=None, ax=None, hue=None, rtol=0.01, subplot_kws=None, **kwargs)[source]#
Default plot of DataArray using
matplotlib.pyplot
.Calls xarray plotting function based on the dimensions of the squeezed DataArray.
Dimensions
Plotting function
1
2
Anything else
- Parameters
darray (
DataArray
)row (
str
, optional) – If passed, make row faceted plots on this dimension name.col (
str
, optional) – If passed, make column faceted plots on this dimension name.hue (
str
, optional) – If passed, make faceted line plots with hue on this dimension name.col_wrap (
int
, optional) – Use together withcol
to wrap faceted plots.ax (
matplotlib axes object
, optional) – Axes on which to plot. By default, use the current axes. Mutually exclusive withsize
,figsize
and 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 (seematplotlib.figure.Figure.add_subplot()
).**kwargs (optional) – Additional keyword arguments for Matplotlib.
See also