Skip to content

Commit 519dbfc

Browse files
committed
BUG : don't assign color to flier props if None
Close matplotlib#3336
1 parent 2de8b18 commit 519dbfc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,11 +3299,12 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
32993299
# discarded linestyle
33003300
_, marker, color = _process_plot_format(sym)
33013301
flierprops['marker'] = marker
3302-
flierprops['color'] = color
3303-
# assume that if color is passed in the user want
3304-
# filled symbol
3305-
flierprops['markeredgecolor'] = color
3306-
flierprops['markerfacecolor'] = color
3302+
if color is not None:
3303+
flierprops['color'] = color
3304+
# assume that if color is passed in the user want
3305+
# filled symbol
3306+
flierprops['markeredgecolor'] = color
3307+
flierprops['markerfacecolor'] = color
33073308
final_flierprops.update(flierprops)
33083309

33093310
# median line properties

0 commit comments

Comments
 (0)