xarray.plot.plot

xarray.plot.plot(darray, 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

xarray.plot.line()

2

xarray.plot.pcolormesh()

Anything else

xarray.plot.hist()

Parameters
darrayDataArray
rowstring, optional

If passed, make row faceted plots on this dimension name

colstring, optional

If passed, make column faceted plots on this dimension name

huestring, optional

If passed, make faceted line plots with hue on this dimension name

col_wrapinteger, optional

Use together with col to wrap faceted plots

axmatplotlib axes, optional

If None, uses the current axis. Not applicable when using facets.

rtolnumber, optional

Relative tolerance used to determine if the indexes are uniformly spaced. Usually a small positive number.

subplot_kwsdict, optional

Dictionary of keyword arguments for matplotlib subplots. Only applies to FacetGrid plotting.

**kwargsoptional

Additional keyword arguments to matplotlib