- plot_travel_times(source_depth, phase_list=('ttbasic',), min_degrees=0, max_degrees=180, npoints=50, model='iasp91', plot_all=True, legend=True, verbose=False, fig=None, ax=None, show=True)
Returns a travel time plot and any created axis instance of this plot.
source_depth (float) – Source depth in kilometers.
min_degrees (float) – minimum distance from the source (in degrees)
max_degrees (float) – maximum distance from the source (in degrees)
npoints (int) – Number of points to plot.
model (str) – string containing the model to use.
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
Falseto only show rays arriving at exactly x degrees.
legend (bool) – Whether or not to show the legend
verbose (bool) – Whether to print information about epicentral distances that did not have an arrival.
matplotlib.figure.Figure) – Figure to plot into. If not given, a new figure instance will be created.
matplotlib.axes.Axes) – Axes to plot in. If not given, a new figure with an axes will be created.
show (bool) – Show the plot.
ax – Axes to plot in. If not given, a new figure with an axes will be created.
Matplotlib axes with the plot
- Return type
>>> from obspy.taup import plot_travel_times >>> ax = plot_travel_times(source_depth=10, phase_list=['P', 'S', 'PP'])