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 instance
kwargs (dict) – Plotting keyword arguments
- Returns:
ax – Axes instance with histogram plot attached
- Return type:
matplotlib.pyplot