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

Default plot of DataArray using matplotlib / pylab.

Calls xray plotting function based on the dimensions of the array:

Dimensions Coordinates Plotting function
1   xray.DataArray.plot_line()
2 Uniform xray.DataArray.plot_imshow()
2 Irregular xray.DataArray.plot_contourf()
Anything else   xray.DataArray.plot_hist()

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