Documentation
pygram11.
bin_edges
Construct bin edges given number of bins and axis limits.
bins (int) – Total number of bins.
range ((float, float)) – Minimum and maximum of the histogram axis.
Edges defined by the number of bins and axis limits.
numpy.ndarray
Examples
>>> bin_edges(bins=8, range=(-2, 2)) array([-2. , -1.5, -1. , -0.5, 0. , 0.5, 1. , 1.5, 2. ])