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 @@ -2133,13 +2133,13 @@ def subs(self, subs):
2133
2133
try :
2134
2134
self ._subs = np .asarray (subs , dtype = float )
2135
2135
except ValueError as e :
2136
- raise ValueError ("If subs is not None and not a string, "
2137
- "it must be a sequence of float." ) from e
2136
+ raise ValueError ("subs must be None, 'all', 'auto' or "
2137
+ "a sequence of floats, not "
2138
+ "{}." .format (subs )) from e
2138
2139
if self ._subs .ndim != 1 :
2139
- raise ValueError ("If subs is not None and not a string, it "
2140
- "must be a sequence of float. Hence subs "
2141
- "should have 1 dimension but it has {} "
2142
- "dimensions." .format (self ._subs .ndim ))
2140
+ raise ValueError ("A sequence passed to subs must be "
2141
+ "1-dimensional, not "
2142
+ "{}-dimensional." .format (self ._subs .ndim ))
2143
2143
2144
2144
def __call__ (self ):
2145
2145
'Return the locations of the ticks'
You can’t perform that action at this time.
0 commit comments