Skip to content

Commit 0a7013a

Browse files
committed
tested descreption
1 parent 865d964 commit 0a7013a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

+9-11
Original file line numberDiff line numberDiff line change
@@ -2104,17 +2104,15 @@ def contour(self, X, Y, Z, *args,
21042104
Parameters
21052105
----------
21062106
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.
2107+
*X* and *Y* are x-y coordinates, specified as 2D arrays of the same
2108+
size as *Z*. `numpy.meshgrid` function could be used to create *X*
2109+
and *Y* coordinate matrices from coordinate vectors.
2110+
If ``size(Z) == [N, N]`` the *X* and *Y* matrices could be
2111+
specified as 1D arrays, where ``len(X) == len(Y) == N``
2112+
Z : array-like,
2113+
*Z* is a 2D array that specifies the height values at each x-y
2114+
coordinate over which the contour is drawn. Z must have at least
2115+
two rows and two columns.
21182116
extend3d : bool, default: False
21192117
Whether to extend contour in 3D.
21202118
stride : int

0 commit comments

Comments
 (0)