May-15-2023, 01:45 PM
(This post was last modified: May-15-2023, 01:45 PM by deanhystad.)
Read the documentations.
https://numpy.org/doc/stable/reference/g...ogram.html
Of particular interest:
https://numpy.org/doc/stable/reference/g...ogram.html
Of particular interest:
Quote:bins : int or sequence of scalars or str, optional
If bins is an int, it defines the number of equal-width bins in the given range (10, by default). If bins is a sequence, it defines a monotonically increasing array of bin edges, including the rightmost edge, allowing for non-uniform bin widths.
Quote:range(float, float), optional
The lower and upper range of the bins. If not provided, range is simply (a.min(), a.max()). Values outside the range are ignored. The first element of the range must be less than or equal to the second. range affects the automatic bin computation as well. While bin width is computed to be optimal based on the actual data within range, the bin count will fill the entire range including portions containing no data.