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

Skip to content

Commit 6101982

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 e84b36d commit 6101982

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
@@ -884,6 +884,7 @@ def validate_animation_writer_path(p):
884884
'boxplot.showbox': [True, validate_bool],
885885
'boxplot.showfliers': [True, validate_bool],
886886
'boxplot.meanline': [False, validate_bool],
887+
887888
'boxplot.flierprops.color': ['k', validate_color],
888889
'boxplot.flierprops.marker': ['o', six.text_type],
889890
'boxplot.flierprops.markerfacecolor': ['none', validate_color],
@@ -904,7 +905,7 @@ def validate_animation_writer_path(p):
904905
'boxplot.capprops.linewidth': [1.0, validate_float],
905906
'boxplot.capprops.linestyle': ['-', six.text_type],
906907

907-
'boxplot.medianprops.color': ['b', validate_color],
908+
'boxplot.medianprops.color': [[0], validate_color],
908909
'boxplot.medianprops.linewidth': [1.0, validate_float],
909910
'boxplot.medianprops.linestyle': ['-', six.text_type],
910911

0 commit comments

Comments
 (0)