mttime.imaging.beachball.beach¶
-
beach
(fm, linewidth=1, facecolor='0.75', bgcolor='w', edgecolor='k', alpha=1.0, xy=(0, 0), width=200, size=100, nofill=False, zorder=100, mopad_basis='NED', axes=None, show_iso=False)[source]¶ Plot beach ball based on MoPaD
Function that returns a beach ball as a collection and can be added to an existing
Axes
.- Parameters
fm (list) – focal mechanism in (strike, dip, rake) or (M11,M22,M33,M12,M13,M23). The moment tensor elements are given for a coordinate system with axes pointing in three directions.
linewidth (float) – width of nodal and border lines. Default is
0.8
.facecolor (str) – color or shade of the compressive quadrants. Default is
0.75
(gray).bgcolor (str) – background color, default is
w
(white).edgecolor (str) – color of nodal and border lines, default is
b
(black).alpha (float) – beach ball transparency, default is
1.0
(opaque).xy (tuple) – original position of the beach ball. Default is
(0, 0)
width (float) – width of the beach ball (aka symbol size). Default is
200
.size (int) – number of points interpolated to draw the curve. Default is
100
.nofill (bool) – no shading of the beach ball. Default is
False
.zorder (float) – set the zorder for the artist. Artists with lower zorder values are drawn first. Default is
100
.mopad_basis (str) – moment tensor coordinate system. Default is
"NED"
.axes (
Axes
) – figure axis for beach ball, this is used to ensure the aspect ratio is adjusted so that the beach ball is circular on non-scaled axes. When this option is used figure cannot be saved in vector format. Default isNone
.show_iso (bool) – flag to display the isotropic component, default is
False
.
- Returns
a collection of lines and polygons.
- Return type
Warning
Set
axes=None
if you want to save the beach ball image in vector file formats.