Skip to content

Commit cad6752

Browse files
committed
Figure.basemap: Refactor to use the new alias system
1 parent 87fe234 commit cad6752

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pygmt/src/basemap.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
basemap - Plot base maps and frames for the figure.
33
"""
44

5+
from pygmt.alias import AliasSystem
56
from pygmt.clib import Session
67
from pygmt.helpers import build_arg_list, fmt_docstring, kwargs_to_strings, use_alias
78

@@ -12,7 +13,6 @@
1213
J="projection",
1314
Jz="zscale",
1415
JZ="zsize",
15-
B="frame",
1616
L="map_scale",
1717
F="box",
1818
Td="rose",
@@ -82,6 +82,9 @@ def basemap(self, **kwargs):
8282
{perspective}
8383
{transparency}
8484
"""
85+
alias = AliasSystem(
86+
B="frame",
87+
)
8588
kwargs = self._preprocess(**kwargs)
8689
with Session() as lib:
87-
lib.call_module(module="basemap", args=build_arg_list(kwargs))
90+
lib.call_module(module="basemap", args=build_arg_list(alias.kwdict))

0 commit comments

Comments
 (0)