plots.plot_fmd#

seismostats.plots.plot_fmd(magnitudes: ndarray, fmd_bin: float, weights: ndarray | None = None, ax: Axes | None = None, color: str | None = None, size: int | None = None, grid: bool = False, bin_position: str = 'center', label: bool | str = True) Axes#

Plots frequency magnitude distribution.

Parameters:
  • magnitudes – Array of magnitudes.

  • fmd_bin – Bin size for the FMD. This can be independent of the discretization of the magnitudes. The optimal value would be as small as possible while at the same time ensuring that there are enough magnitudes in each bin.

  • weights – Weights for the magnitudes, defaults to None

  • ax – The axis where figure should be plotted.

  • color – Color of the data.

  • size – Size of 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.

  • label – Label of the data points. If True, it will be set to “non cumulative”. If a string is provided, it will be used as the label for the data points. If False, no label is shown.

Returns:

ax – The ax object that was plotted on.