obspy.taup.tau.Arrivals.plot_times

Arrivals.plot_times(phase_list=None, plot_all=True, legend=False, show=True, fig=None, ax=None)[source]

Plot arrival times if any have been calculated.

Parameters
  • phase_list (list[str]) – List of phases for which travel times are plotted, if they exist. See `phase_taup`_ for details on phase naming and convenience keys like 'ttbasic'. Defaults to 'ttall'.

  • plot_all (bool) – By default all rays, even those travelling in the other direction and thus arriving at a distance of 360 - x degrees are shown. Set this to False to only show rays arriving at exactly x degrees.

  • legend (bool or str) – If boolean, specify whether or not to show the legend (at the default location.) If a str, specify the location of the legend.

  • show (bool) – Show the plot.

  • fig (matplotlib.figure.Figure) – Figure instance to plot in. If not given, a new figure will be created.

  • ax (matplotlib.axes.Axes) – Axes to plot in. If not given, a new figure with an axes will be created.

Returns

Matplotlib axes with the plot

Return type

matplotlib.axes.Axes