Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50e5ccb

Browse files
committed
DEF: update default median linecolor for boxplots
It was just "blue". Now it's [0] to pick out the first color from the existing color cycle, whatever that may be.
1 parent 926c67b commit 50e5ccb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@ def validate_hist_bins(s):
860860
'boxplot.showbox': [True, validate_bool],
861861
'boxplot.showfliers': [True, validate_bool],
862862
'boxplot.meanline': [False, validate_bool],
863+
863864
'boxplot.flierprops.color': ['k', validate_color],
864865
'boxplot.flierprops.marker': ['o', six.text_type],
865866
'boxplot.flierprops.markerfacecolor': ['none', validate_color],
@@ -880,7 +881,7 @@ def validate_hist_bins(s):
880881
'boxplot.capprops.linewidth': [1.0, validate_float],
881882
'boxplot.capprops.linestyle': ['-', six.text_type],
882883

883-
'boxplot.medianprops.color': ['b', validate_color],
884+
'boxplot.medianprops.color': [[0], validate_color],
884885
'boxplot.medianprops.linewidth': [1.0, validate_float],
885886
'boxplot.medianprops.linestyle': ['-', six.text_type],
886887

0 commit comments

Comments
 (0)