plot_hist¶
- nbi_stat.plot_hist(n, x, wx, en, b=None, *, ax=None, as_bar=False, **kwargs)[source]¶
Plot a histogram
- Parameters:
n (array-like) – Bin contents
x (array-like) – Bin centers
wx (array-like) – Bin widths
en (array-like) – Uncertainty on bin content
b (array-like) – For bar charts, set the bottom. Note, the top of the bars will be at b + n
ax (matplotlib.axes.Axes) – Axes to plot in. If None, plot in current axes
as_bar (bool) – If true, plot as a bar chart, otherwise as errorbars
kwargs (dict) – Additional keyword arguments for artist
- Returns:
container – Container of artists
- Return type:
matplotlib.container.BarContainer, matplotlib.container.ErrorbarContainer
See also
init_histogram
,fill_histogram
,fini_histogram
,histogram
,Histogram