xray.plot.plot

xray.plot.plot(darray, ax=None, rtol=0.01, **kwargs)

Default plot of DataArray using matplotlib / pylab.

Calls xray plotting function based on the dimensions of darray.squeeze()

Dimensions Coordinates Plotting function
1   xray.plot.line()
2 Uniform xray.plot.imshow()
2 Irregular xray.plot.contourf()
Anything else   xray.plot.hist()
Parameters:

darray : DataArray

ax : matplotlib axes, optional

If None, uses the current axis

rtol : number, optional

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

**kwargs : optional

Additional keyword arguments to matplotlib