plots.plot_fmd#

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

Plots frequency magnitude distribution.

Parameters:
  • magnitudes – Array of magnitudes.

  • fmd_bin – Bin size for the FMD. This can be independent of the descritization 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.

  • 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.

Returns:

ax – The ax object that was plotted on.