Skip to content

Commit eb2bcc5

Browse files
authored
1 parent 55c6176 commit eb2bcc5

15 files changed

+35
-5
lines changed

pygmt/helpers/decorators.py

+7
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@
7272
when the subplot was defined. **Note**: *row*, *col*, and *index*
7373
all start at 0.
7474
""",
75+
"f": r"""
76+
coltypes : str
77+
[**i**\|\ **o**]\ *colinfo*.
78+
Specify data types of input and/or output columns (time or
79+
geographical data). Full documentation is at
80+
:gmt-docs:`gmt.html#f-full`.
81+
""",
7582
"j": r"""
7683
distcalc : str
7784
**e**\|\ **f**\|\ **g**.

pygmt/src/basemap.py

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
X="xshift",
2929
Y="yshift",
3030
c="panel",
31+
f="coltypes",
3132
p="perspective",
3233
t="transparency",
3334
)
@@ -69,6 +70,7 @@ def basemap(self, **kwargs):
6970
{V}
7071
{XY}
7172
{c}
73+
{f}
7274
{p}
7375
{t}
7476
"""

pygmt/src/blockmedian.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
@fmt_docstring
19-
@use_alias(I="spacing", R="region", V="verbose")
19+
@use_alias(I="spacing", R="region", V="verbose", f="coltypes")
2020
@kwargs_to_strings(R="sequence")
2121
def blockmedian(table, outfile=None, **kwargs):
2222
r"""
@@ -52,6 +52,7 @@ def blockmedian(table, outfile=None, **kwargs):
5252
file.
5353
5454
{V}
55+
{f}
5556
5657
Returns
5758
-------

pygmt/src/grdcontour.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
X="xshift",
2424
Y="yshift",
2525
c="panel",
26+
f="coltypes",
2627
p="perspective",
2728
t="transparency",
2829
)
@@ -84,6 +85,7 @@ def grdcontour(self, grid, **kwargs):
8485
{W}
8586
{XY}
8687
{c}
88+
{f}
8789
label : str
8890
Add a legend entry for the contour being plotted. Normally, the
8991
annotated contour is selected for the legend. You can select the

pygmt/src/grdcut.py

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
S="circ_subregion",
2323
V="verbose",
2424
Z="z_subregion",
25+
f="coltypes",
2526
)
2627
@kwargs_to_strings(R="sequence")
2728
def grdcut(grid, **kwargs):
@@ -76,6 +77,7 @@ def grdcut(grid, **kwargs):
7677
area.
7778
7879
{V}
80+
{f}
7981
8082
Returns
8183
-------

pygmt/src/grdfilter.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
R="region",
2424
T="toggle",
2525
V="verbose",
26+
f="coltypes",
2627
)
2728
@kwargs_to_strings(R="sequence")
2829
def grdfilter(grid, **kwargs):
@@ -108,6 +109,7 @@ def grdfilter(grid, **kwargs):
108109
opposite of the input grid. [Default gives the same registration as the
109110
input grid].
110111
{V}
112+
{f}
111113
112114
Returns
113115
-------

pygmt/src/grdimage.py

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
Y="yshift",
2626
n="interpolation",
2727
c="panel",
28+
f="coltypes",
2829
p="perspective",
2930
t="transparency",
3031
x="cores",
@@ -143,6 +144,7 @@ def grdimage(self, grid, **kwargs):
143144
{V}
144145
{XY}
145146
{c}
147+
{f}
146148
{n}
147149
{p}
148150
{t}

pygmt/src/grdinfo.py

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
R="region",
2323
T="nearest_multiple",
2424
V="verbose",
25+
f="coltypes",
2526
)
2627
@kwargs_to_strings(D="sequence", I="sequence", R="sequence")
2728
def grdinfo(grid, **kwargs):
@@ -100,6 +101,7 @@ def grdinfo(grid, **kwargs):
100101
We report the result via the text string *zmin/zmax* or *zmin/zmax/dz*
101102
(if *dz* was given) as expected by :meth:`pygmt.makecpt`.
102103
{V}
104+
{f}
103105
104106
Returns
105107
-------

pygmt/src/grdtrack.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@fmt_docstring
18-
@use_alias(n="interpolation", V="verbose")
18+
@use_alias(V="verbose", f="coltypes", n="interpolation")
1919
def grdtrack(points, grid, newcolname=None, outfile=None, **kwargs):
2020
"""
2121
Sample grids at specified (x,y) locations.
@@ -55,7 +55,7 @@ def grdtrack(points, grid, newcolname=None, outfile=None, **kwargs):
5555
file.
5656
5757
{V}
58-
58+
{f}
5959
{n}
6060
6161
Returns

pygmt/src/grdview.py

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
X="xshift",
3434
Y="yshift",
3535
c="panel",
36+
f="coltypes",
3637
p="perspective",
3738
t="transparency",
3839
)
@@ -107,6 +108,7 @@ def grdview(self, grid, **kwargs):
107108
{V}
108109
{XY}
109110
{c}
111+
{f}
110112
{p}
111113
{t}
112114
"""

pygmt/src/info.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
@fmt_docstring
10-
@use_alias(C="per_column", I="spacing", T="nearest_multiple", V="verbose")
10+
@use_alias(C="per_column", I="spacing", T="nearest_multiple", V="verbose", f="coltypes")
1111
def info(table, **kwargs):
1212
r"""
1313
Get information about data tables.
@@ -48,6 +48,7 @@ def info(table, **kwargs):
4848
of dz and output this in the form ``[zmin, zmax, dz]``.
4949
5050
{V}
51+
{f}
5152
5253
Returns
5354
-------

pygmt/src/plot.py

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
i="columns",
4040
l="label",
4141
c="panel",
42+
f="coltypes",
4243
p="perspective",
4344
t="transparency",
4445
)
@@ -183,6 +184,7 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
183184
``color='+z'``. To apply it to the pen color, append **+z** to
184185
``pen``.
185186
{c}
187+
{f}
186188
columns : str or 1d array
187189
Choose which columns are x, y, color, and size, respectively if
188190
input is provided via *data*. E.g. ``columns = [0, 1]`` or

pygmt/src/plot3d.py

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
i="columns",
4040
l="label",
4141
c="panel",
42+
f="coltypes",
4243
p="perspective",
4344
t="transparency",
4445
)
@@ -153,6 +154,7 @@ def plot3d(
153154
``color='+z'``. To apply it to the pen color, append **+z** to
154155
``pen``.
155156
{c}
157+
{f}
156158
label : str
157159
Add a legend entry for the symbol or line being plotted.
158160
{p}

pygmt/src/surface.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@fmt_docstring
20-
@use_alias(I="spacing", R="region", G="outfile", V="verbose")
20+
@use_alias(I="spacing", R="region", G="outfile", V="verbose", f="coltypes")
2121
@kwargs_to_strings(R="sequence")
2222
def surface(x=None, y=None, z=None, data=None, **kwargs):
2323
r"""
@@ -60,6 +60,7 @@ def surface(x=None, y=None, z=None, data=None, **kwargs):
6060
to store the grid in.
6161
6262
{V}
63+
{f}
6364
6465
Returns
6566
-------

pygmt/src/text.py

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
X="xshift",
3030
Y="yshift",
3131
c="panel",
32+
f="coltypes",
3233
p="perspective",
3334
t="transparency",
3435
)
@@ -143,6 +144,7 @@ def text_(
143144
{V}
144145
{XY}
145146
{c}
147+
{f}
146148
{p}
147149
{t}
148150
"""

0 commit comments

Comments
 (0)