Skip to content

Commit 24405f0

Browse files
committed
Migrate the panel paramter in basemap
1 parent b6ca6f4 commit 24405f0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

pygmt/src/basemap.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
Td="rose",
1919
Tm="compass",
2020
V="verbose",
21-
c="panel",
2221
f="coltypes",
2322
p="perspective",
2423
t="transparency",
2524
)
26-
@kwargs_to_strings(R="sequence", c="sequence_comma", p="sequence")
27-
def basemap(self, projection=None, **kwargs):
25+
@kwargs_to_strings(R="sequence", p="sequence")
26+
def basemap(
27+
self, projection=None, panel: int | tuple[int, int] | bool = False, **kwargs
28+
):
2829
r"""
2930
Plot base maps and frames.
3031
@@ -40,6 +41,7 @@ def basemap(self, projection=None, **kwargs):
4041
4142
{aliases}
4243
- J = projection
44+
- c = panel
4345
4446
Parameters
4547
----------
@@ -84,8 +86,13 @@ def basemap(self, projection=None, **kwargs):
8486
{transparency}
8587
"""
8688
self._activate_figure()
89+
8790
aliasdict = AliasSystem(
8891
J=Alias(projection, name="projection"),
89-
).merge(kwargs)
92+
).add_common(
93+
c=panel,
94+
)
95+
aliasdict.merge(kwargs)
96+
9097
with Session() as lib:
9198
lib.call_module(module="basemap", args=build_arg_list(aliasdict))

0 commit comments

Comments
 (0)