plots.plot_cum_fmd#

seismostats.plots.plot_cum_fmd(magnitudes: ndarray | Series, ax: Axes | None = None, b_value: float | None = None, mc: float | None = None, delta_m: float = 0, color: str | list | None = None, size: int | None = None, grid: bool = False, bin_position: str = 'center', legend: bool | str | list = True) Axes#

Plots cumulative frequency magnitude distribution, optionally with a corresponding theoretical Gutenberg-Richter (GR) distribution. The GR distribution is plotted provided the b-value is given.

Parameters:
  • magnitudes – Array of magnitudes.

  • ax – Axis where figure should be plotted.

  • b_value – The b-value of the theoretical GR distribution to plot.

  • mc – Completeness magnitude of the theoretical GR distribution.

  • delta_m – Discretization of the magnitudes; important for the correct visualization of the data.

  • color – Color of the data. If one value is given, it is used for points, and the line of the theoretical GR distribution if it is plotted. If a list of colors is given, the first entry is the color of the points, and the second of the line representing the GR distribution.

  • size – Size of the data points.

  • grid – Indicates whether or not to include grid lines.

  • bin_position – Position of the bin, options are ‘center’ and ‘left’ accordingly, left edges of bins or center points are returned.

Returns:

ax – The ax object that was plotted on.