Skip to content

Commit f31ab3c

Browse files
committed
Update to the new AliasSystem usage
1 parent 08c987c commit f31ab3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/src/timestamp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,20 @@ def timestamp(
9999
# unsetting 'text'.
100100
timefmt, text = str(text), None
101101

102-
alias = AliasSystem(
102+
aliasdict = AliasSystem(
103103
U=[
104104
Alias(label, name="label"),
105105
Alias(justify, name="justify", prefix="+j"),
106106
Alias(offset, name="offset", prefix="+o", separator="/"),
107107
Alias(text, name="text", prefix="+t"),
108108
]
109109
)
110-
alias.kwdict["T"] = True # Add '-T' to the "plot" module.
110+
aliasdict["T"] = True # Add '-T' to the "plot" module.
111111

112112
with Session() as lib:
113113
lib.call_module(
114114
module="plot",
115115
args=build_arg_list(
116-
alias.kwdict, confdict={"FONT_LOGO": font, "FORMAT_TIME_STAMP": timefmt}
116+
aliasdict, confdict={"FONT_LOGO": font, "FORMAT_TIME_STAMP": timefmt}
117117
),
118118
)

0 commit comments

Comments
 (0)