Skip to content

Commit 37ce2f7

Browse files
Meghan Jonesseisman
Meghan Jones
andauthored
Add alias 'aspatial' to methods blockmedian, info, plot, plot3d, surface (#1090)
* Add aspatial alias to COMMON_OPTIONS * Add aspatial alias to blockmedian, info, plot, plot3d, surface Co-authored-by: Dongdong Tian <[email protected]>
1 parent 7a4c763 commit 37ce2f7

File tree

6 files changed

+16
-0
lines changed

6 files changed

+16
-0
lines changed

pygmt/helpers/decorators.py

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@
6262
Shift plot origin in y-direction. Full documentation is at
6363
:gmt-docs:`gmt.html#xy-full`.
6464
""",
65+
"a": r"""
66+
aspatial : str
67+
[*col*\ =]\ *name*\ [,...].
68+
Control how aspatial data are handled during input and output.
69+
Full documentation is at :gmt-docs:`gmt.html#aspatial-full`.
70+
""",
6571
"c": r"""
6672
panel : bool or int or list
6773
[*row,col*\|\ *index*].

pygmt/src/blockmedian.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
I="spacing",
2121
R="region",
2222
V="verbose",
23+
a="aspatial",
2324
f="coltypes",
2425
r="registration",
2526
)
@@ -58,6 +59,7 @@ def blockmedian(table, outfile=None, **kwargs):
5859
file.
5960
6061
{V}
62+
{a}
6163
{f}
6264
{r}
6365

pygmt/src/info.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
I="spacing",
1919
T="nearest_multiple",
2020
V="verbose",
21+
a="aspatial",
2122
f="coltypes",
2223
r="registration",
2324
)
@@ -62,6 +63,7 @@ def info(table, **kwargs):
6263
of dz and output this in the form ``[zmin, zmax, dz]``.
6364
6465
{V}
66+
{a}
6567
{f}
6668
{r}
6769

pygmt/src/plot.py

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
X="xshift",
3535
Y="yshift",
3636
Z="zvalue",
37+
a="aspatial",
3738
i="columns",
3839
l="label",
3940
c="panel",
@@ -181,6 +182,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
181182
polygon in the input data. To apply it to the fill color, use
182183
``color='+z'``. To apply it to the pen color, append **+z** to
183184
``pen``.
185+
{a}
184186
{c}
185187
{f}
186188
columns : str or 1d array

pygmt/src/plot3d.py

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
X="xshift",
3535
Y="yshift",
3636
Z="zvalue",
37+
a="aspatial",
3738
i="columns",
3839
l="label",
3940
c="panel",
@@ -151,6 +152,7 @@ def plot3d(
151152
polygon in the input data. To apply it to the fill color, use
152153
``color='+z'``. To apply it to the pen color, append **+z** to
153154
``pen``.
155+
{a}
154156
{c}
155157
{f}
156158
label : str

pygmt/src/surface.py

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
R="region",
2323
G="outfile",
2424
V="verbose",
25+
a="aspatial",
2526
f="coltypes",
2627
r="registration",
2728
)
@@ -67,6 +68,7 @@ def surface(x=None, y=None, z=None, data=None, **kwargs):
6768
to store the grid in.
6869
6970
{V}
71+
{a}
7072
{f}
7173
{r}
7274

0 commit comments

Comments
 (0)