Skip to content

Commit

Permalink
Figure.meca: Add aliases for C, E, G, and W (#2345)
Browse files Browse the repository at this point in the history
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Michael Grund <23025878+michaelgrund@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 19, 2023
1 parent 2b7acaf commit 2dfd01e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ def data_format_code(convention, component="full"):

@fmt_docstring
@use_alias(
R="region",
J="projection",
A="offset",
B="frame",
C="cmap",
E="extensionfill",
G="compressionfill",
J="projection",
N="no_clip",
R="region",
V="verbose",
W="pen",
c="panel",
p="perspective",
t="transparency",
Expand Down Expand Up @@ -211,6 +215,21 @@ def meca(
to the circle. Use **+s**\ *size* to set the diameter of the circle
[Default is no circle]. Use **+p**\ *pen* to set the line pen
attributes [Default is 0.25p].
compressionfill : str
Set color or pattern for filling compressive quadrants
[Default is black].
extensionfill : str
Set color or pattern for filling extensive quadrants
[Default is white].
pen : str
Set pen attributes for outline of beachball
[Default is ``"0.25p,black,solid"``].
cmap : str
File name of a CPT file or a series of comma-separated colors (e.g.,
*color1,color2,color3*) to build a linear continuous CPT from those
colors automatically. The color of the compressive quadrants is
determined by the z-value (i.e., event depth or the third column for
an input file).
no_clip : bool
Does NOT skip symbols that fall outside frame boundary specified by
``region`` [Default is False, i.e. plot symbols inside map frame only].
Expand Down

0 comments on commit 2dfd01e

Please sign in to comment.