binsizes_x#

Hist2d.binsizes_x()[source]#

Compute the widths of the bins along the x-axis.

Returns:
ndarray

Array of bin widths along the x-axis, with shape (self.xbins,).

Examples

>>> h = Hist2d(values, xedges, yedges)
>>> xwidths = h.binsizes_x()
>>> xwidths.shape == (h.xbins,)
True