Axes.
hist2d
(x, y, bins=10, range=None, normed=False, weights=None, cmin=None, cmax=None, *, data=None, **kwargs)[source]¶Make a 2D histogram plot.
Parameters: | x, y : array_like, shape (n, )
bins : None or int or [int, int] or array_like or [array, array]
range : array_like shape(2, 2), optional, default: None
normed : bool, optional, default: False
weights : array_like, shape (n, ), optional, default: None
cmin : scalar, optional, default: None
cmax : scalar, optional, default: None
|
---|---|
Returns: | h : 2D array
xedges : 1D array
yedges : 1D array
image : |
Other Parameters: | cmap : Colormap or str, optional
norm : Normalize, optional
vmin/vmax : None or scalar, optional
alpha :
|
See also
hist
Notes
hist2d
calculates it's own axis limits, and any limits
previously set are ignored.colors.LogNorm
instance to the norm
keyword argument. Likewise, power-law normalization (similar
in effect to gamma correction) can be accomplished with
colors.PowerNorm
.Note
In addition to the above described arguments, this function can take a data keyword argument. If such a data argument is given, the following arguments are replaced by data[<arg>]:
Objects passed as data must support item access (data[<arg>]
) and
membership test (<arg> in data
).
matplotlib.axes.Axes.hist2d
¶