Skip to content

Commit ba53b9c

Browse files
committed
Figure.logo: Refactor to use the new alias system
1 parent 21caf4c commit ba53b9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pygmt/src/logo.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
logo - Plot the GMT logo
33
"""
44

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

@@ -11,7 +12,6 @@
1112
R="region",
1213
J="projection",
1314
D="position",
14-
F="box",
1515
S="style",
1616
V="verbose",
1717
c="panel",
@@ -54,6 +54,9 @@ def logo(self, **kwargs):
5454
{panel}
5555
{transparency}
5656
"""
57+
alias = AliasSystem(
58+
F=Alias("box"),
59+
)
5760
kwargs = self._preprocess(**kwargs)
5861
with Session() as lib:
59-
lib.call_module(module="logo", args=build_arg_list(kwargs))
62+
lib.call_module(module="logo", args=build_arg_list(alias.kwdict))

0 commit comments

Comments
 (0)