Skip to content

Commit 2bd69cc

Browse files
committed
Figure.coast: Migrate the land/water parameter to the new alias system
1 parent 56e5780 commit 2bd69cc

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pygmt/src/coast.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@
2424
A="area_thresh",
2525
C="lakes",
2626
E="dcw",
27-
G="land",
2827
I="rivers",
2928
L="map_scale",
3029
N="borders",
31-
S="water",
3230
W="shorelines",
3331
)
34-
def coast(
32+
def coast( # noqa: PLR0913
3533
self,
3634
resolution: Literal[
3735
"auto", "full", "high", "intermediate", "low", "crude", None
3836
] = None,
37+
land: str | None = None,
38+
water: str | None = None,
3939
box: Box | bool = False,
4040
projection: str | None = None,
4141
frame: str | Sequence[str] | bool = False,
@@ -69,9 +69,11 @@ def coast(
6969
$aliases
7070
- B = frame
7171
- D = resolution
72+
- G = land
7273
- F = box
7374
- J = projection
7475
- R = region
76+
- S = water
7577
- V = verbose
7678
- c = panel
7779
- p = perspective
@@ -97,8 +99,10 @@ def coast(
9799
``"low"``, and ``"crude"``, which drops by 80% between levels. Default is
98100
``"auto"`` to automatically select the most suitable resolution given the chosen
99101
map scale.
100-
land : str
102+
land
101103
Select filling of "dry" areas.
104+
water
105+
Select filling of "wet" areas.
102106
rivers : int, str, or list
103107
*river*\ [/*pen*].
104108
Draw rivers. Specify the type of rivers and [optionally] append
@@ -149,8 +153,6 @@ def coast(
149153
- ``3``: marine boundaries
150154
- ``"a"``: all boundaries (``1`` - ``3``)
151155
152-
water : str
153-
Select filling "wet" areas.
154156
shorelines : bool, int, str, or list
155157
[*level*\ /]\ *pen*.
156158
Draw shorelines [Default is no shorelines]. Append pen attributes
@@ -222,6 +224,8 @@ def coast(
222224
},
223225
),
224226
F=Alias(box, name="box"),
227+
G=Alias(land, name="land"),
228+
S=Alias(water, name="water"),
225229
).add_common(
226230
B=frame,
227231
J=projection,

0 commit comments

Comments
 (0)