Skip to content

Commit 865d964

Browse files
committed
Add description for XYZ in contour method
1 parent ad95791 commit 865d964

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -2103,8 +2103,18 @@ def contour(self, X, Y, Z, *args,
21032103
21042104
Parameters
21052105
----------
2106-
X, Y, Z : array-like
2107-
Input data.
2106+
X, Y : array-like,
2107+
The coordinates of the values in *Z*.
2108+
2109+
*X* and *Y* must both be 2D with the same shape as *Z* (e.g.
2110+
created via `numpy.meshgrid`), or they must both be 1-D such
2111+
that ``len(X) == N`` is the number of columns in *Z* and
2112+
``len(Y) == M`` is the number of rows in *Z*.
2113+
2114+
If not given, they are assumed to be integer indices, i.e.
2115+
``X = range(N)``, ``Y = range(M)``.
2116+
Z : (M, N) array-like
2117+
The height values over which the contour is drawn.
21082118
extend3d : bool, default: False
21092119
Whether to extend contour in 3D.
21102120
stride : int

0 commit comments

Comments
 (0)