- Arrivals.plot_rays(phase_list=None, plot_type='spherical', plot_all=True, legend=False, label_arrivals=False, show=True, fig=None, ax=None)
Plot ray paths if any have been calculated.
plot_type (str) – Either
"cartesian". A spherical plot is always global whereas a Cartesian one can also be local.
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 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. If you are plotting a single phase, you may consider using the
label_arrivals (bool) – Label the arrivals with their respective phase names. This setting is only useful if you are plotting a single phase as otherwise the names could be large and possibly overlap or clip. Consider using the
legendparameter instead if you are plotting multiple phases.
show (bool) – Show the plot
matplotlib.figure.Figure) – Figure to plot in. If not given, a new figure will be created.
matplotlib.axes.Axes) – Axes to plot in. If not given, a new figure with an axes will be created. Must be a polar axes for the spherical plot and a regular one for the Cartesian plot.
Matplotlib axes with the plot
- Return type