8000
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 2b783c3 commit b270987Copy full SHA for b270987
lib/matplotlib/axes/_axes.py
@@ -4,7 +4,6 @@
4
import six
5
from six.moves import xrange, zip, zip_longest
6
7
-from collections import Sized
8
import functools
9
import itertools
10
import math
@@ -3025,8 +3024,7 @@ def extract_err(err, data):
3025
3024
# special case for empty lists
3026
if len(err) > 1:
3027
fe = safe_first_element(err)
3028
- if (len(err) != len(data)
3029
- or isinstance(fe, Sized) and len(fe) > 1):
+ if (len(err) != len(data) or np.size(fe) > 1):
3030
raise ValueError("err must be [ scalar | N, Nx1 "
3031
"or 2xN array-like ]")
3032
# using list comps rather than arrays to preserve units
0 commit comments