xarray.DataArray.plot.hist
xarray.DataArray.plot.hist#
- DataArray.plot.hist(figsize=None, size=None, aspect=None, ax=None, xincrease=None, yincrease=None, xscale=None, yscale=None, xticks=None, yticks=None, xlim=None, ylim=None, **kwargs)[source]#
Histogram of DataArray.
Wraps
matplotlib.pyplot.hist().Plots N-dimensional arrays by first flattening the array.
- Parameters
darray (
DataArray) – Can have any number of dimensions.figsize (
tuple, optional) – A tuple (width, height) of the figure in inches. Mutually exclusive withsizeandax.aspect (scalar, optional) – Aspect ratio of plot, so that
aspect * sizegives the width in inches. Only used if asizeis provided.size (scalar, optional) – If provided, create a new figure for the plot with the given size: height (in inches) of each plot. See also:
aspect.ax (
matplotlib axes object, optional) – Axes on which to plot. By default, use the current axes. Mutually exclusive withsizeandfigsize.**kwargs (optional) – Additional keyword arguments to
matplotlib.pyplot.hist().