atompy.Hist2d.within_yrange#

Hist2d.within_yrange(yrange, keepdims=False)[source]#

Apply an inclusive gate along y.

Return a histogram where yrange[0] <= yedges <= yrange[1]

Parameters:
yrange(float, float)

lower/upper xedge to be included in the final histogram. Edges are included.

keepdimsbool, default False

If True, keep original dimensions, i.e., the length of yedges won’t change

Returns:
new_histogramHist2d