binareas#
- Hist2d.binareas()[source]#
Compute the area of each 2D bin in the histogram.
- Returns:
ndarray2D array of shape (self.xbins, self.ybins) containing the area of each bin, computed as the outer product of x-bin widths and y-bin widths.
Examples
>>> h = Hist2d(values, xedges, yedges) >>> areas = h.binareas() >>> areas.shape == h.values.shape True