atompy.Hist2d.rebinned_y#

Hist2d.rebinned_y(factor)[source]#

Rebin y-dimension of histogram.

Return a Hist2d where the second dimension was rebinned with a factor of factor

Parameters:
factorint

This is how many old ybins will be combined to a new bin. Number of old ybins divided by factor must be an integer

Returns:
rebinned_hist2dHist2d

the new (rebinned) histogram