Skip to content

Commit b1468a6

Browse files
committed
Figure.basemap: Migrate the perspective parameter to the new alias system
1 parent df409ee commit b1468a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pygmt/src/basemap.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from pygmt.alias import AliasSystem
99
from pygmt.clib import Session
10-
from pygmt.helpers import build_arg_list, fmt_docstring, kwargs_to_strings, use_alias
10+
from pygmt.helpers import build_arg_list, fmt_docstring, use_alias
1111

1212

1313
@fmt_docstring
@@ -19,9 +19,7 @@
1919
Td="rose",
2020
Tm="compass",
2121
f="coltypes",
22-
p="perspective",
2322
)
24-
@kwargs_to_strings(p="sequence")
2523
def basemap(
2624
self,
2725
projection: str | None = None,
@@ -31,6 +29,7 @@ def basemap(
3129
| bool = False,
3230
panel: int | Sequence[int] | bool = False,
3331
transparency: float | None = None,
32+
perspective: float | Sequence[float] | str | bool = False,
3433
**kwargs,
3534
):
3635
r"""
@@ -52,6 +51,7 @@ def basemap(
5251
- R = region
5352
- V = verbose
5453
- c = panel
54+
- p = perspective
5555
- t = transparency
5656
5757
Parameters
@@ -104,6 +104,7 @@ def basemap(
104104
R=region,
105105
V=verbose,
106106
c=panel,
107+
p=perspective,
107108
t=transparency,
108109
)
109110
aliasdict.merge(kwargs)

0 commit comments

Comments
 (0)