File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1347,11 +1347,15 @@ def _get_error_data(
13471347 # NOTE: Include option to pass symmetric deviation from central points
13481348 if errdata is not None :
13491349 # Manual error data
1350+ if y .ndim != 1 :
1351+ raise ValueError (
1352+ 'errdata with 2D y coordinates is not yet supported.'
1353+ )
13501354 label_default = 'uncertainty'
13511355 err = _to_ndarray (errdata )
13521356 if (
13531357 err .ndim not in (1 , 2 )
1354- or err .shape [- 1 ] != y .shape [ - 1 ]
1358+ or err .shape [- 1 ] != y .size
13551359 or err .ndim == 2 and err .shape [0 ] != 2
13561360 ):
13571361 raise ValueError (
@@ -2865,8 +2869,6 @@ def apply_cycle(
28652869 # methods call these internally and expect a certain output format!
28662870 if plot :
28672871 return tuple (objs ) # always return tuple of objects
2868- elif box :
2869- return objs [0 ] # always return singleton
28702872 else :
28712873 return objs [0 ] if len (objs ) == 1 else tuple (objs )
28722874
You can’t perform that action at this time.
0 commit comments