Plot bins
Functions for binning histograms (created on January 12th 2023 by M. Reichmann)
freedman_diaconis
freedman_diaconis (x)
width
width (x)
n
n (x)
increase_range
increase_range (low, high, fl, fh, to_int=False)
increases the range [low, high] by the given factors [fl] on the low end and [fh] on the high end.
entries
entries (h)
single_entries_2d
single_entries_2d (h, ix, iy, nx)
entries_2d
entries_2d (h, flat=False)
from_uvec
from_uvec (x)
from_vec
from_vec (x, centre=False)
from_p
from_p (x)
make
make (xmin, xmax=None, w=1, last=False, nb=None, off=0)
make2d
make2d (x, y, wx=1, wy=1, nx=None, ny=None, last=True)
find_range
find_range (values, lfac=0.2, rfac=0.2, q=0.02, lq=None)
find
find (values, lfac=0.2, rfac=0.2, q=0.02, nbins=1, lq=None, w=None, x0=None, x1=None, r=None)
find_2d
find_2d (x, y, lfac=0.2, rfac=0.2, q=0.02, nb=1, lq=None, w=None, x0=None)
hn
hn (h, axis='X')
from_hist
from_hist (h, err=True, raw=False, axis='X')
hx
hx (h, err=True)
hy
hy (h, err=True)
h2d
h2d (h, arr=False)
h2dgrid
h2dgrid (h)
set_2d_values
set_2d_values (h, arr)
set_2d_entries
set_2d_entries (h, arr)