Skip to content

Commit e51976b

Browse files
michaelgrundJosh Sixsmith
authored and
Josh Sixsmith
committed
pygmt.surface: Reorder input parameters to 'data, x, y, z' (GenericMappingTools#1562)
1 parent 9a2fec2 commit e51976b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pygmt/src/surface.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from pygmt.helpers import (
77
GMTTempFile,
88
build_arg_string,
9+
check_data_input_order,
910
deprecate_parameter,
1011
fmt_docstring,
1112
kwargs_to_strings,
@@ -16,6 +17,7 @@
1617

1718
@fmt_docstring
1819
@deprecate_parameter("outfile", "outgrid", "v0.5.0", remove_version="v0.7.0")
20+
@check_data_input_order("v0.5.0", remove_version="v0.7.0")
1921
@use_alias(
2022
I="spacing",
2123
R="region",
@@ -32,7 +34,7 @@
3234
w="wrap",
3335
)
3436
@kwargs_to_strings(R="sequence")
35-
def surface(x=None, y=None, z=None, data=None, **kwargs):
37+
def surface(data=None, x=None, y=None, z=None, **kwargs):
3638
r"""
3739
Grids table data using adjustable tension continuous curvature splines.
3840
@@ -54,12 +56,12 @@ def surface(x=None, y=None, z=None, data=None, **kwargs):
5456
5557
Parameters
5658
----------
57-
x/y/z : 1d arrays
58-
Arrays of x and y coordinates and values z of the data points.
5959
data : str or {table-like}
6060
Pass in (x, y, z) or (longitude, latitude, elevation) values by
6161
providing a file name to an ASCII data table, a 2D
6262
{table-classes}.
63+
x/y/z : 1d arrays
64+
Arrays of x and y coordinates and values z of the data points.
6365
6466
{I}
6567

0 commit comments

Comments
 (0)