File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 14
14
from matplotlib import unpack_labeled_data
15
15
16
16
import matplotlib .cbook as cbook
17
- from matplotlib .cbook import (mplDeprecation , STEP_LOOKUP_MAP , is_sequence_of_strings ,
17
+ from matplotlib .cbook import (mplDeprecation , STEP_LOOKUP_MAP ,
18
18
iterable , is_string_like )
19
19
import matplotlib .collections as mcoll
20
20
import matplotlib .colors as mcolors
@@ -2184,11 +2184,11 @@ def make_iterable(x):
2184
2184
2185
2185
if tick_labels is not None :
2186
2186
tick_labels = make_iterable (tick_labels )
2187
- if not is_sequence_of_strings (tick_labels ):
2188
- raise ValueError ( "tick_label must be a sequence of strings" )
2187
+ if isinstance (tick_labels , six . string_types ):
2188
+ tick_labels = [ tick_labels ]
2189
2189
if len (tick_labels ) == 1 :
2190
- tick_labels *= tick_label_position
2191
- if len (tick_labels ) != tick_label_position :
2190
+ tick_labels *= nbars
2191
+ if len (tick_labels ) != nbars :
2192
2192
raise ValueError ("incompatible sizes: argument 'tick_label' "
2193
2193
"must be length %d or string" % nbars )
2194
2194
You can’t perform that action at this time.
0 commit comments