|
5 | 5 | from pygmt.exceptions import GMTInvalidInput
|
6 | 6 | from pygmt.helpers import (
|
7 | 7 | build_arg_string,
|
| 8 | + check_data_input_order, |
8 | 9 | data_kind,
|
9 | 10 | deprecate_parameter,
|
10 | 11 | fmt_docstring,
|
|
18 | 19 | @fmt_docstring
|
19 | 20 | @deprecate_parameter("columns", "incols", "v0.4.0", remove_version="v0.6.0")
|
20 | 21 | @deprecate_parameter("sizes", "size", "v0.4.0", remove_version="v0.6.0")
|
| 22 | +@check_data_input_order("v0.5.0", remove_version="v0.7.0") |
21 | 23 | @use_alias(
|
22 | 24 | A="straight_line",
|
23 | 25 | B="frame",
|
|
54 | 56 | )
|
55 | 57 | @kwargs_to_strings(R="sequence", c="sequence_comma", i="sequence_comma", p="sequence")
|
56 | 58 | def plot3d(
|
57 |
| - self, x=None, y=None, z=None, data=None, size=None, direction=None, **kwargs |
| 59 | + self, data=None, x=None, y=None, z=None, size=None, direction=None, **kwargs |
58 | 60 | ):
|
59 | 61 | r"""
|
60 | 62 | Plot lines, polygons, and symbols in 3-D.
|
@@ -83,13 +85,13 @@ def plot3d(
|
83 | 85 |
|
84 | 86 | Parameters
|
85 | 87 | ----------
|
86 |
| - x/y/z : float or 1d arrays |
87 |
| - The x, y, and z coordinates, or arrays of x, y and z coordinates of |
88 |
| - the data points |
89 | 88 | data : str or {table-like}
|
90 | 89 | Either a data file name, a 2d {table-classes}.
|
91 | 90 | Optionally, use parameter ``incols`` to specify which columns are x, y,
|
92 | 91 | z, color, and size, respectively.
|
| 92 | + x/y/z : float or 1d arrays |
| 93 | + The x, y, and z coordinates, or arrays of x, y and z coordinates of |
| 94 | + the data points |
93 | 95 | size : 1d array
|
94 | 96 | The size of the data points in units specified in ``style``.
|
95 | 97 | Only valid if using ``x``/``y``/``z``.
|
|
0 commit comments