Skip to content

Commit 7b2ff17

Browse files
committed
Figure.wiggle: Reorder input parameter to 'data, x, y, z'
1 parent 3861935 commit 7b2ff17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pygmt/src/wiggle.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from pygmt.clib import Session
55
from pygmt.helpers import (
66
build_arg_string,
7+
check_data_input_order,
78
deprecate_parameter,
89
fmt_docstring,
910
kwargs_to_strings,
@@ -13,6 +14,7 @@
1314

1415
@fmt_docstring
1516
@deprecate_parameter("columns", "incols", "v0.5.0", remove_version="v0.7.0")
17+
@check_data_input_order("v0.5.0", remove_version="v0.7.0")
1618
@use_alias(
1719
B="frame",
1820
D="position",
@@ -39,7 +41,7 @@
3941
w="wrap",
4042
)
4143
@kwargs_to_strings(R="sequence", c="sequence_comma", i="sequence_comma", p="sequence")
42-
def wiggle(self, x=None, y=None, z=None, data=None, **kwargs):
44+
def wiggle(self, data=None, x=None, y=None, z=None, **kwargs):
4345
r"""
4446
Plot z=f(x,y) anomalies along tracks.
4547

0 commit comments

Comments
 (0)