Catalog.plot_cum_count#

Catalog.plot_cum_count(mcs: ndarray | None = None, delta_m: float | None = None, weights: ndarray | None = None, normalize: bool = True, ax: Axes | None = None, color: str | list | None = None) Axes#

Plots cumulative count of earthquakes in given catalog above given Mc through time. Plots a line for each given completeness magnitude in the array mcs.

Parameters:
  • times – Array containing times of events.

  • magnitudes – Array of magnitudes of events corresponding to the times.

  • mcs – The list of completeness magnitudes for which we show lines on the plot.

  • delta_m – Binning precision of the magnitudes.

  • ax – Axis where figure should be plotted.

  • color – Color of the lines, corresponding to the different completeness magnitudes (if no completeness is given, the lowest magnitude of the catalog will be chosen as completeness). It should have the same length as mcs. If a single string is given, all lines will be plotted in that color. If None is chosen, it will be set to the default matplotlib color cycle.

Returns:

ax – Ax that was plotted on.