Distributions

MagnitudeDistributions.histmagFunction
histmag(mags, binwidth)

Group the magnitude values mags into magnitude bins of width binwidth. Return an array containing the center of each bin and an array containing the number of events in each bin. The left edge of the first bin corresponds to the minimum magnitude in mags.

source