xarray.plot.hist (original) (raw)
xarray.plot.hist(darray, *args, 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 (
Iterable
of float, optional) – A tuple (width, height) of the figure in inches. Mutually exclusive withsize
andax
. - aspect (
"auto"
,"equal"
, scalar or None, optional) – Aspect ratio of plot, so thataspect * size
gives the width in inches. Only used if asize
is 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 with
size
andfigsize
. - xincrease (bool or None, optional) – Should the values on the x axis be increasing from left to right? if
None
, use the default for the Matplotlib function. - yincrease (bool or None, optional) – Should the values on the y axis be increasing from top to bottom? if
None
, use the default for the Matplotlib function. - xscale, yscale (
{'linear', 'symlog', 'log', 'logit'}
, optional) – Specifies scaling for the _x_- and _y_-axis, respectively. - xticks, yticks (array-like, optional) – Specify tick locations for _x_- and _y_-axis.
- xlim, ylim (
tuple[float
,float]
, optional) – Specify _x_- and _y_-axis limits. - **kwargs (optional) – Additional keyword arguments to matplotlib.pyplot.hist().