plot_histogram#
- pydrad.visualize.plot_histogram(vals, bins, ax=None, **kwargs)[source]#
Given a set of bin edges and the values in each bin, plot the histogram.
- Parameters:
vals (array-like) – value in each bin
bins (array-like) – Bin edges, including the rightmost edge
ax (
matplotlib.pyplot, optional) – Matplotlib axis instancekwargs (
dict) – Plotting keyword arguments
- Returns:
ax (
matplotlib.pyplot) – Axes instance with histogram plot attached