# 5.11.1.5. eqcorrscan.utils.plotting.interev_mag

`eqcorrscan.utils.plotting.``interev_mag`(times, mags, save=False, savefile=None, size=(10.5, 7.5))

  Plot inter-event times against magnitude.

  Parameters: | times (list) list of the detection times, must be sorted the same as mags mags (list) list of magnitudes save (bool) False will plot to screen, true will save plot and not show to screen. savefile (str) Filename to save to, required for save=True size (tuple) Size of figure in inches.
  Returns: | `matplotlib.figure.Figure`

  Example

      >>> from obspy.clients.fdsn import Client
      >>> from obspy import UTCDateTime
      >>> from eqcorrscan.utils.plotting import interev_mag
      >>> client = Client('IRIS')
      >>> t1 = UTCDateTime('2012-03-26T00:00:00')
      >>> t2 = t1 + (3 * 86400)
      >>> catalog = client.get_events(starttime=t1, endtime=t2, minmagnitude=3)
      >>> magnitudes = [event.preferred_magnitude().mag for event in catalog]
      >>> times = [event.preferred_origin().time for event in catalog]
      >>> interev_mag(times, magnitudes)

  (Source code, png, hires.png)