pyrocko.plot.beachball¶
Functions
|
Get beachball amplitude values for selected azimuths and takeoff angles. |
|
Plot beachball diagram to a Matplotlib plot |
|
Plot fuzzy beachball from a list of given MomentTensors |
|
Project 3D points to 2D. |
- project(points, projection='lambert')[source]¶
Project 3D points to 2D.
- Parameters:
projection (str) – Projection to use. Choices:
'lambert'
,'stereographic'
,'orthographic'
.
- plot_beachball_mpl(mt, axes, beachball_type='deviatoric', position=(0.0, 0.0), size=None, zorder=0, color_t='red', color_p='white', edgecolor='black', linewidth=2, alpha=1.0, arcres=181, decimation=1, projection='lambert', size_units='points', view='top')[source]¶
Plot beachball diagram to a Matplotlib plot
- Parameters:
mt –
pyrocko.moment_tensor.MomentTensor
object or an array or sequence which can be converted into an MT objectbeachball_type –
'deviatoric'
(default),'full'
, or'dc'
position – position of the beachball in data coordinates
size – diameter of the beachball either in points or in data coordinates, depending on the
size_units
settingzorder – (passed through to matplotlib drawing functions)
color_t – color for compressional quadrants (default:
'red'
)color_p – color for extensive quadrants (default:
'white'
)edgecolor – color for lines (default:
'black'
)linewidth – linewidth in points (default:
2
)alpha – (passed through to matplotlib drawing functions)
projection –
'lambert'
(default),'stereographic'
, or'orthographic'
size_units –
'points'
(default) or'data'
, where the latter causes the beachball to be projected in the plots data coordinates (axes must have an aspect ratio of 1.0 or the beachball will be shown distorted when using this).view – View the beachball from
'top'
,'north'
,'south'
,'east'
or'west'
, or project onto plane given by(strike, dip)
. Useful to show beachballs in cross-sections. Default is'top'
.
- amplitudes(mt, azimuths, takeoff_angles)[source]¶
Get beachball amplitude values for selected azimuths and takeoff angles.
- plot_fuzzy_beachball_mpl_pixmap(mts, axes, best_mt=None, beachball_type='deviatoric', position=(0.0, 0.0), size=None, zorder=0, color_t='red', color_p='white', edgecolor='black', best_color='red', linewidth=2, alpha=1.0, projection='lambert', size_units='data', grid_resolution=200, method='imshow', view='top')[source]¶
Plot fuzzy beachball from a list of given MomentTensors
- Parameters:
mts – list of
pyrocko.moment_tensor.MomentTensor
object or an array or sequence which can be converted into an MT objectbest_mt –
pyrocko.moment_tensor.MomentTensor
object or an array or sequence which can be converted into an MT object of most likely or minimum misfit solution to extra highlightbest_color – mpl color for best MomentTensor edges, polygons are not plotted
See plot_beachball_mpl for other arguments