xarray.plot.plot

Contents

xarray.plot.plot#

xarray.plot.plot(darray, *, row=None, col=None, col_wrap=None, ax=None, hue=None, 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

xarray.plot.line()

2

xarray.plot.pcolormesh()

Anything else

xarray.plot.hist()

Parameters:
  • darray (DataArray)

  • row (Hashable or None, optional) – If passed, make row faceted plots on this dimension name.

  • col (Hashable or None, optional) – If passed, make column faceted plots on this dimension name.

  • col_wrap (int or None, optional) – Use together with col to wrap faceted plots.

  • ax (matplotlib axes object, optional) – Axes on which to plot. By default, use the current axes. Mutually exclusive with size, figsize and facets.

  • hue (Hashable or None, optional) – If passed, make faceted line plots with hue on this dimension name.

  • subplot_kws (dict, optional) – Dictionary of keyword arguments for Matplotlib subplots (see matplotlib.figure.Figure.add_subplot()).

  • **kwargs (optional) – Additional keyword arguments for Matplotlib.