File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2385,13 +2385,13 @@ def subs(self, subs):
2385
2385
try :
2386
2386
self ._subs = np .asarray (subs , dtype = float )
2387
2387
except ValueError as e :
2388
- raise ValueError ("If subs is not None and not a string, "
2389
- "it must be a sequence of float." ) from e
2388
+ raise ValueError ("subs must be None, 'all', 'auto' or "
2389
+ "a sequence of floats, not "
2390
+ "{}." .format (subs )) from e
2390
2391
if self ._subs .ndim != 1 :
2391
- raise ValueError ("If subs is not None and not a string, it "
2392
- "must be a sequence of float. Hence subs "
2393
- "should have 1 dimension but it has {} "
2394
- "dimensions." .format (self ._subs .ndim ))
2392
+ raise ValueError ("A sequence passed to subs must be "
2393
+ "1-dimensional, not "
2394
+ "{}-dimensional." .format (self ._subs .ndim ))
2395
2395
2396
2396
def __call__ (self ):
2397
2397
'Return the locations of the ticks'
You can’t perform that action at this time.
0 commit comments