Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Backport PR #29896: Change .T to .transpose() in _reshape_2D
  • Loading branch information
story645 authored and meeseeksmachine committed Apr 10, 2025
commit 7470a819a216db5dbb4de2eb2bb604b7a4b3fd03
2 changes: 1 addition & 1 deletion lib/matplotlib/cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ def _reshape_2D(X, name):

# Iterate over columns for ndarrays.
if isinstance(X, np.ndarray):
X = X.T
X = X.transpose()

if len(X) == 0:
return [[]]
Expand Down