@@ -3363,6 +3363,8 @@ def _update_dict(dictionary, rc_name, properties):
33633363 # filled symbol, if the users want more control use
33643364 # flierprops
33653365 flierprops ['color' ] = color
3366+ flierprops ['markerfacecolor' ] = color
3367+ flierprops ['markeredgecolor' ] = color
33663368
33673369 # replace medians if necessary:
33683370 if usermedians is not None :
@@ -3575,23 +3577,34 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
35753577
35763578 # box properties
35773579 if patch_artist :
3578- final_boxprops = dict (linestyle = 'solid' , edgecolor = 'black' ,
3579- facecolor = 'white' , linewidth = 1 )
3580+ final_boxprops = dict (
3581+ linestyle = rcParams ['boxplot.boxprops.linestyle' ],
3582+ edgecolor = rcParams ['boxplot.boxprops.color' ],
3583+ facecolor = rcParams ['patch.facecolor' ],
3584+ linewidth = rcParams ['boxplot.boxprops.linewidth' ]
3585+ )
3586+ if rcParams ['_internal.classic_mode' ]:
3587+ final_boxprops ['facecolor' ] = 'white'
35803588 else :
3581- final_boxprops = dict (linestyle = '-' , color = 'blue' )
3589+ final_boxprops = dict (
3590+ linestyle = rcParams ['boxplot.boxprops.linestyle' ],
3591+ color = rcParams ['boxplot.boxprops.color' ],
3592+ )
35823593
35833594 if boxprops is not None :
35843595 final_boxprops .update (boxprops )
35853596
35863597 # other (cap, whisker) properties
35873598 final_whiskerprops = dict (
3588- linestyle = '--' ,
3589- color = 'blue' ,
3599+ linestyle = rcParams ['boxplot.whiskerprops.linestyle' ],
3600+ linewidth = rcParams ['boxplot.whiskerprops.linewidth' ],
3601+ color = rcParams ['boxplot.whiskerprops.color' ],
35903602 )
35913603
35923604 final_capprops = dict (
3593- linestyle = '-' ,
3594- color = 'black' ,
3605+ linestyle = rcParams ['boxplot.capprops.linestyle' ],
3606+ linewidth = rcParams ['boxplot.capprops.linewidth' ],
3607+ color = rcParams ['boxplot.capprops.color' ],
35953608 )
35963609
35973610 if capprops is not None :
@@ -3601,23 +3614,44 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
36013614 final_whiskerprops .update (whiskerprops )
36023615
36033616 # set up the default flier properties
3604- final_flierprops = dict (linestyle = 'none' , marker = '+' , color = 'blue' )
3617+ final_flierprops = dict (
3618+ linestyle = rcParams ['boxplot.flierprops.linestyle' ],
3619+ linewidth = rcParams ['boxplot.flierprops.linewidth' ],
3620+ color = rcParams ['boxplot.flierprops.color' ],
3621+ marker = rcParams ['boxplot.flierprops.marker' ],
3622+ markerfacecolor = rcParams ['boxplot.flierprops.markerfacecolor' ],
3623+ markeredgecolor = rcParams ['boxplot.flierprops.markeredgecolor' ],
3624+ markersize = rcParams ['boxplot.flierprops.markersize' ],
3625+ )
36053626
36063627 # flier (outlier) properties
36073628 if flierprops is not None :
36083629 final_flierprops .update (flierprops )
36093630
36103631 # median line properties
3611- final_medianprops = dict (linestyle = '-' , color = 'red' )
3632+ final_medianprops = dict (
3633+ linestyle = rcParams ['boxplot.medianprops.linestyle' ],
3634+ linewidth = rcParams ['boxplot.medianprops.linewidth' ],
3635+ color = rcParams ['boxplot.medianprops.color' ],
3636+ )
36123637 if medianprops is not None :
36133638 final_medianprops .update (medianprops )
36143639
36153640 # mean (line or point) properties
36163641 if meanline :
3617- final_meanprops = dict (linestyle = '--' , color = 'black' )
3642+ final_meanprops = dict (
3643+ linestyle = rcParams ['boxplot.meanprops.linestyle' ],
3644+ linewidth = rcParams ['boxplot.meanprops.linewidth' ],
3645+ color = rcParams ['boxplot.meanprops.color' ],
3646+ )
36183647 else :
3619- final_meanprops = dict (linestyle = 'none' , markerfacecolor = 'red' ,
3620- marker = 's' )
3648+ final_meanprops = dict (
3649+ linestyle = '' ,
3650+ marker = rcParams ['boxplot.meanprops.marker' ],
3651+ markerfacecolor = rcParams ['boxplot.meanprops.markerfacecolor' ],
3652+ markeredgecolor = rcParams ['boxplot.meanprops.markeredgecolor' ],
3653+ markersize = rcParams ['boxplot.meanprops.markersize' ],
3654+ )
36213655 if meanprops is not None :
36223656 final_meanprops .update (meanprops )
36233657
0 commit comments