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

Skip to content

Commit 2094ee0

Browse files
committed
Merge pull request matplotlib#3284 from tacaswell/cbook_bxpstats_fix
BUG : fix _reshape_2D bug with [(n, 1), ..] input
1 parent 010a485 commit 2094ee0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/cbook.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,6 +2168,8 @@ def _reshape_2D(X):
21682168

21692169
if not hasattr(X[0], '__len__'):
21702170
X = [X]
2171+
else:
2172+
X = [np.ravel(x) for x in X]
21712173

21722174
return X
21732175

0 commit comments

Comments
 (0)