|
2 | 2 | Focal mechanisms |
3 | 3 | ================ |
4 | 4 |
|
5 | | -The :meth:`pygmt.Figure.meca` method can plot focal mechanisms or beachballs. |
6 | | -We can specify the focal mechanism nodal planes or moment tensor components |
7 | | -as a dictionary using the ``spec`` parameter (or they can be specified as a |
8 | | -1-D or 2-D array, or within a file). The size of the beachballs can be set |
9 | | -using the ``scale`` parameter. The compressive and extensive quadrants can |
10 | | -be filled either with a color or a pattern via the ``compressionfill`` and |
11 | | -``extensionfill`` parameters, respectively. Use the ``pen`` parameter to |
12 | | -adjust the outline of the beachballs. |
| 5 | +The :meth:`pygmt.Figure.meca` method can plot focal mechanisms or beachballs. We can |
| 6 | +specify the focal mechanism nodal planes or moment tensor components as a dictionary |
| 7 | +using the ``spec`` parameter (or they can be specified as a 1-D or 2-D array, or within |
| 8 | +a file). The size of the beachballs can be set using the ``scale`` parameter. The |
| 9 | +compressive and extensive quadrants can be filled either with a color or a pattern via |
| 10 | +the ``compression_fill`` and ``extension_fill`` parameters, respectively. Use the |
| 11 | +``pen`` parameter to adjust the outline of the beachballs. |
13 | 12 | """ |
14 | 13 |
|
15 | 14 | # %% |
|
41 | 40 | depth=12.0, |
42 | 41 | # Fill compressive quadrants with color "red" |
43 | 42 | # [Default is "black"] |
44 | | - compressionfill="red", |
| 43 | + compression_fill="red", |
45 | 44 | # Fill extensive quadrants with color "cornsilk" |
46 | 45 | # [Default is "white"] |
47 | | - extensionfill="cornsilk", |
48 | | - # Draw a 0.5 points thick dark gray ("gray30") solid outline via |
| 46 | + extension_fill="cornsilk", |
| 47 | + # Draw a 0.5-point thick dark gray ("gray30") solid outline via |
49 | 48 | # the pen parameter [Default is "0.25p,black,solid"] |
50 | 49 | pen="0.5p,gray30,solid", |
51 | 50 | ) |
|
0 commit comments