Skip to content

Commit 6186817

Browse files
committed
Fixed errant statement recently added to the contour docs. Also removed old, outdated statement about masked arrays.
1 parent 1e9b4f5 commit 6186817

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/contour.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,10 +1292,9 @@ def _initialize_x_y(self, z):
12921292
Use keyword args to control colors, linewidth, origin, cmap ... see
12931293
below for more details.
12941294
1295-
*X*, *Y*, and *Z* must be arrays broadcastable to the same dimensions.
1296-
1297-
*Z* may be a masked array, but filled contouring may not
1298-
handle internal masked regions correctly.
1295+
*X* and *Y* must both be 2-D with the same shape as *Z*, or they
1296+
must both be 1-D such that ``len(X)`` is the number of columns in
1297+
*Z* and ``len(Y)`` is the number of rows in *Z*.
12991298
13001299
``C = contour(...)`` returns a
13011300
:class:`~matplotlib.contour.QuadContourSet` object.

0 commit comments

Comments
 (0)