e15190.utilities.fast_histogram.plot_histo1d¶
- e15190.utilities.fast_histogram.plot_histo1d(hist_func, x, range, bins, **kwargs)¶
Plot a 1D histogram using
fast_histogram.- Parameters
hist_func (plt.hist() or ax.hist()) – The histogram function from matplotlib.
x (1D array-like) – Data to be histogrammed.
range (2-tuple or 2-list) – The lower and upper range of the histogram.
bins (int) – The number of bins.
**kwargs – Keyword arguments to be passed to
hist_func. See more at matplotlib.pyplot.hist.
- Returns
h (1D array of shape (bins, )) – The bin contents.
edges (1D array of shape (bins + 1, )) – The bin edges.
patches (histogram patches) – The histogram patches.