Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90a91b1

Browse files
authored
Fix shape of Z in contour docs (#20495)
I think the Z matrix shape is flipped -- it should maybe be (N,M)?
1 parent 23b1729 commit 90a91b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ def _initialize_x_y(self, z):
15831583
If not given, they are assumed to be integer indices, i.e.
15841584
``X = range(M)``, ``Y = range(N)``.
15851585
1586-
Z : (M, N) array-like
1586+
Z : (N, M) array-like
15871587
The height values over which the contour is drawn.
15881588
15891589
levels : int or array-like, optional

0 commit comments

Comments
 (0)