Skip to content

Commit 25af727

Browse files
committed
Also migrate the meshpen parameter to the new alias system
1 parent 2f32c36 commit 25af727

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pygmt/src/grdview.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
G="drapegrid",
2222
N="plane",
2323
Wc="contourpen",
24-
Wm="meshpen",
2524
Wf="facadepen",
2625
I="shading",
2726
f="coltypes",
@@ -36,6 +35,7 @@ def grdview( # noqa: PLR0913
3635
| None = None,
3736
dpi: int | None = None,
3837
meshfill: float | None = None,
38+
meshpen: str | None = None,
3939
monochrome: bool = False,
4040
nan_transparent: bool = False,
4141
projection: str | None = None,
@@ -69,6 +69,7 @@ def grdview( # noqa: PLR0913
6969
- R = region
7070
- Q = surftype
7171
- V = verbose
72+
- Wm = meshpen
7273
- c = panel
7374
- p = perspective
7475
- t = transparency
@@ -110,7 +111,9 @@ def grdview( # noqa: PLR0913
110111
Effective dots-per-unit resolution for the rasterization for image plots (i.e.,
111112
``surftype="image"``) [Default is :gmt-term:`GMT_GRAPHICS_DPU`]
112113
meshfill
113-
For mesh plot or waterfall plots, set the mesh fill [Default is white].
114+
Set the mesh fill [Default is white] for mesh or waterfall plots.
115+
meshpen
116+
Set the pen attributes for the mesh lines, for mesh, or waterfall plots.
114117
monochrome
115118
Force conversion to monochrome image using the (television) YIQ transformation.
116119
nan_transparent
@@ -119,9 +122,6 @@ def grdview( # noqa: PLR0913
119122
contourpen : str
120123
Draw contour lines on top of surface or mesh (not image). Append pen attributes
121124
used for the contours.
122-
meshpen : str
123-
Set the pen attributes used for the mesh. You must also select ``surftype`` of
124-
**m** or **sm** for meshlines to be drawn.
125125
facadepen :str
126126
Set the pen attributes used for the facade. You must also select ``plane`` for
127127
the facade outline to be drawn.
@@ -212,6 +212,7 @@ def grdview( # noqa: PLR0913
212212
Alias(meshfill, name="meshfill"),
213213
Alias(monochrome, name="monochrome", prefix="+m"),
214214
],
215+
Wm=Alias(meshpen, name="meshpen"),
215216
).add_common(
216217
B=frame,
217218
J=projection,

0 commit comments

Comments
 (0)