var2d(x, y, xbins, ybins, weights=None, flow=False)¶
ydata with variable width binning.
The two input arrays (
y) must be the same length (shape).
x (numpy.ndarray) – First entries in data pairs to histogram.
y (numpy.ndarray) – Second entries in data pairs to histogram.
xbins (numpy.ndarray) – Bin edges for the
ybins (np.ndarray) – Bin edges for the
weights (array_like, optional) – The weights for data element. If weights are absent, the second return type will be
flow (bool) – Include under/overflow.
A histogram of (
y) where the edges are defined by a
numpy.logspace()in both dimensions:
>>> bins = numpy.logspace(0.1, 1.0, 10, endpoint=True) >>> h, __ = var2d(x, y, bins, bins)