@@ -3355,21 +3355,13 @@ def errorbar(self, x, y, yerr=None, xerr=None,
33553355 if ecolor is None :
33563356 ecolor = base_style ['color' ]
33573357
3358- # Eject any marker information from line format string, as it's not
3358+ # Eject any line-specific information from format string, as it's not
33593359 # needed for bars or caps.
3360- base_style .pop ('marker' , None )
3361- base_style .pop ('markersize' , None )
3362- base_style .pop ('markerfacecolor' , None )
3363- base_style .pop ('markeredgewidth' , None )
3364- base_style .pop ('markeredgecolor' , None )
3365- base_style .pop ('markevery' , None )
3366- base_style .pop ('linestyle' , None )
3367- base_style .pop ('fillstyle' , None )
3368- base_style .pop ('drawstyle' , None )
3369- base_style .pop ('dash_capstyle' , None )
3370- base_style .pop ('dash_joinstyle' , None )
3371- base_style .pop ('solid_capstyle' , None )
3372- base_style .pop ('solid_joinstyle' , None )
3360+ for key in ['marker' , 'markersize' , 'markerfacecolor' ,
3361+ 'markeredgewidth' , 'markeredgecolor' , 'markevery' ,
3362+ 'linestyle' , 'fillstyle' , 'drawstyle' , 'dash_capstyle' ,
3363+ 'dash_joinstyle' , 'solid_capstyle' , 'solid_joinstyle' ]:
3364+ base_style .pop (key , None )
33733365
33743366 # Make the style dict for the line collections (the bars).
33753367 eb_lines_style = {** base_style , 'color' : ecolor }
0 commit comments