Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b13a9 commit 6b1950bCopy full SHA for 6b1950b
lib/matplotlib/cbook/__init__.py
@@ -1606,8 +1606,15 @@ def index_of(y):
1606
try:
1607
return y.index.values, y.values
1608
except AttributeError:
1609
+ pass
1610
+ try:
1611
y = _check_1d(y)
1612
+ except (np.VisibleDeprecationWarning, ValueError):
1613
+ # NumPy 1.19 will warn on ragged input, and we can't actually use it.
1614
1615
+ else:
1616
return np.arange(y.shape[0], dtype=float), y
1617
+ raise ValueError('Input could not be cast to an at-least-1D NumPy array')
1618
1619
1620
def safe_first_element(obj):
0 commit comments