atompy.Hist2d.within_xrange#

Hist2d.within_xrange(xrange, keepdims=False)[source]#

Apply an inclusive gate along x.

Return a histogram where xrange[0] <= xedges <= xrange[1]

Parameters:
xrange(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 xedges won’t change

Returns:
new_histogramHist2d