File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2292,9 +2292,9 @@ def cycle_changer(
22922292 label = label ,
22932293 legend_kw_labels = legend_kw .pop ('labels' , None ),
22942294 )
2295- colorbar_legend_label = None # for colorbar or legend
22962295 if name in ('pie' ,): # add x coordinates as default pie chart labels
2297- kwargs ['labels' ] = _not_none (labels , x ) # TODO: move to pie wrapper?
2296+ labels = _not_none (labels , x ) # TODO: move to pie wrapper?
2297+ colorbar_legend_label = None # for colorbar or legend
22982298 if name in ('bar' , 'fill_between' , 'fill_betweenx' ):
22992299 stacked = kwargs .pop ('stacked' , False )
23002300 if name in ('bar' ,):
@@ -2400,7 +2400,10 @@ def cycle_changer(
24002400 # Sanitize labels
24012401 # WARNING: Must convert labels to string here because e.g. scatter() applies
24022402 # default label if input is False-ey. So numeric '0' would be overridden.
2403- labels = [str (_not_none (label , '' )) for label in labels ]
2403+ if labels is None :
2404+ labels = ['' ] * ncols
2405+ else :
2406+ labels = [str (_not_none (label , '' )) for label in labels ]
24042407
24052408 # Get step size for bar plots
24062409 # WARNING: This will fail for non-numeric non-datetime64 singleton
You can’t perform that action at this time.
0 commit comments