Skip to content

Commit 2dfd01e

Browse files
yvonnefroehlichseismanmichaelgrund
authored
Figure.meca: Add aliases for C, E, G, and W (#2345)
Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Michael Grund <[email protected]>
1 parent 2b7acaf commit 2dfd01e

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

pygmt/src/meca.py

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ def data_format_code(convention, component="full"):
7575

7676
@fmt_docstring
7777
@use_alias(
78-
R="region",
79-
J="projection",
8078
A="offset",
8179
B="frame",
80+
C="cmap",
81+
E="extensionfill",
82+
G="compressionfill",
83+
J="projection",
8284
N="no_clip",
85+
R="region",
8386
V="verbose",
87+
W="pen",
8488
c="panel",
8589
p="perspective",
8690
t="transparency",
@@ -211,6 +215,21 @@ def meca(
211215
to the circle. Use **+s**\ *size* to set the diameter of the circle
212216
[Default is no circle]. Use **+p**\ *pen* to set the line pen
213217
attributes [Default is 0.25p].
218+
compressionfill : str
219+
Set color or pattern for filling compressive quadrants
220+
[Default is black].
221+
extensionfill : str
222+
Set color or pattern for filling extensive quadrants
223+
[Default is white].
224+
pen : str
225+
Set pen attributes for outline of beachball
226+
[Default is ``"0.25p,black,solid"``].
227+
cmap : str
228+
File name of a CPT file or a series of comma-separated colors (e.g.,
229+
*color1,color2,color3*) to build a linear continuous CPT from those
230+
colors automatically. The color of the compressive quadrants is
231+
determined by the z-value (i.e., event depth or the third column for
232+
an input file).
214233
no_clip : bool
215234
Does NOT skip symbols that fall outside frame boundary specified by
216235
``region`` [Default is False, i.e. plot symbols inside map frame only].

0 commit comments

Comments
 (0)