Skip to content

Commit 26d482b

Browse files
authored
Merge pull request matplotlib#29896 from mtsokol/cbook-_reshape_2D-tweak
Change `.T` to `.transpose()` in `_reshape_2D`
2 parents d55bdde + a29212c commit 26d482b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ def _reshape_2D(X, name):
13871387

13881388
# Iterate over columns for ndarrays.
13891389
if isinstance(X, np.ndarray):
1390-
X = X.T
1390+
X = X.transpose()
13911391

13921392
if len(X) == 0:
13931393
return [[]]

0 commit comments

Comments
 (0)