Skip to content

Commit 2cfb303

Browse files
Meghan Jonesseisman
Meghan Jones
andauthored
Add missing aliases to pygmt.Figure.text (#1448)
Adds common options timestamp (U), aspatial (a), find (e), header (h), incols (i) and wrap (w) to the pygmt.Figure.text method. Co-authored-by: Dongdong Tian <[email protected]>
1 parent a028634 commit 2cfb303

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pygmt/src/text.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,20 @@
2424
D="offset",
2525
G="fill",
2626
N="no_clip",
27+
U="timestamp",
2728
V="verbose",
2829
W="pen",
2930
X="xshift",
3031
Y="yshift",
32+
a="aspatial",
3133
c="panel",
34+
e="find",
3235
f="coltypes",
36+
h="header",
37+
i="incols",
3338
p="perspective",
3439
t="transparency",
40+
w="wrap",
3541
)
3642
@kwargs_to_strings(
3743
R="sequence",
@@ -141,14 +147,20 @@ def text_(
141147
style = solid].
142148
no_clip : bool
143149
Do NOT clip text at map boundaries [Default is will clip].
150+
{U}
144151
{V}
145152
{XY}
153+
{a}
146154
{c}
155+
{e}
147156
{f}
157+
{h}
158+
{i}
148159
{p}
149160
{t}
150161
*transparency* can also be a 1d array to set varying transparency
151162
for texts, but this option is only valid if using x/y/text.
163+
{w}
152164
"""
153165

154166
# pylint: disable=too-many-locals

0 commit comments

Comments
 (0)