plots.plot_cum_fmd#
- seismostats.plots.plot_cum_fmd(magnitudes: ndarray | Series, mc: float | None = None, delta_m: float | None = None, b_value: float | None = None, ax: Axes | None = None, 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.
mc – Completeness magnitude of the theoretical GR distribution.
delta_m – Discretization of the magnitudes; important for the correct visualization of the data. Assumed 0 if not given. It is possible to provide a value that is larger than the actual discretization of the magnitudes. In this case, the magnitudes will be binned to the given
delta_m.b_value – The b-value of the theoretical GR distribution to plot.
ax – Axis where figure should be plotted.
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.