@@ -4319,14 +4319,17 @@ def do_patch(xs, ys, **kwargs):
4319
4319
do_box = do_patch if patch_artist else do_plot
4320
4320
boxes .append (do_box (box_x , box_y , ** box_kw ))
4321
4321
# draw the whiskers
4322
- whiskers .append (do_plot (whis_x , whislo_y , ** whisker_kw , label = "_nolegend_" ))
4323
- whiskers .append (do_plot (whis_x , whishi_y , ** whisker_kw , label = "_nolegend_" ))
4322
+ whisker_kw .setdefault ('label' , '_nolegend_' )
4323
+ whiskers .append (do_plot (whis_x , whislo_y , ** whisker_kw ))
4324
+ whiskers .append (do_plot (whis_x , whishi_y , ** whisker_kw ))
4324
4325
# maybe draw the caps
4325
4326
if showcaps :
4326
- caps .append (do_plot (cap_x , cap_lo , ** cap_kw , label = "_nolegend_" ))
4327
- caps .append (do_plot (cap_x , cap_hi , ** cap_kw , label = "_nolegend_" ))
4327
+ cap_kw .setdefault ('label' , '_nolegend_' )
4328
+ caps .append (do_plot (cap_x , cap_lo , ** cap_kw ))
4329
+ caps .append (do_plot (cap_x , cap_hi , ** cap_kw ))
4328
4330
# draw the medians
4329
- medians .append (do_plot (med_x , med_y , ** median_kw , label = "_nolegend_" ))
4331
+ median_kw .setdefault ('label' , '_nolegend_' )
4332
+ medians .append (do_plot (med_x , med_y , ** median_kw ))
4330
4333
# maybe draw the means
4331
4334
if showmeans :
4332
4335
if meanline :
@@ -4338,9 +4341,10 @@ def do_patch(xs, ys, **kwargs):
4338
4341
means .append (do_plot ([pos ], [stats ['mean' ]], ** mean_kw ))
4339
4342
# maybe draw the fliers
4340
4343
if showfliers :
4344
+ flier_kw .setdefault ('label' , '_nolegend_' )
4341
4345
flier_x = np .full (len (stats ['fliers' ]), pos , dtype = np .float64 )
4342
4346
flier_y = stats ['fliers' ]
4343
- fliers .append (do_plot (flier_x , flier_y , ** flier_kw , label = "_nolegend_" ))
4347
+ fliers .append (do_plot (flier_x , flier_y , ** flier_kw ))
4344
4348
4345
4349
if manage_ticks :
4346
4350
axis_name = "x" if vert else "y"
0 commit comments