Plot bins

Functions for binning histograms (created on January 12th 2023 by M. Reichmann)

source

freedman_diaconis

 freedman_diaconis (x)

source

width

 width (x)

source

n

 n (x)

source

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.


source

entries

 entries (h)

source

single_entries_2d

 single_entries_2d (h, ix, iy, nx)

source

entries_2d

 entries_2d (h, flat=False)

source

from_uvec

 from_uvec (x)

source

from_vec

 from_vec (x, centre=False)

source

from_p

 from_p (x)

source

make

 make (xmin, xmax=None, w=1, last=False, nb=None, off=0)

source

make2d

 make2d (x, y, wx=1, wy=1, nx=None, ny=None, last=True)

source

find_range

 find_range (values, lfac=0.2, rfac=0.2, q=0.02, lq=None)

source

find

 find (values, lfac=0.2, rfac=0.2, q=0.02, nbins=1, lq=None, w=None,
       x0=None, x1=None, r=None)

source

find_2d

 find_2d (x, y, lfac=0.2, rfac=0.2, q=0.02, nb=1, lq=None, w=None,
          x0=None)

source

hn

 hn (h, axis='X')

source

from_hist

 from_hist (h, err=True, raw=False, axis='X')

source

hx

 hx (h, err=True)

source

hy

 hy (h, err=True)

source

h2d

 h2d (h, arr=False)

source

h2dgrid

 h2dgrid (h)

source

set_2d_values

 set_2d_values (h, arr)

source

set_2d_entries

 set_2d_entries (h, arr)