Skip to content

Commit d972466

Browse files
committed
Use Vega collection10 colors instead
1 parent ffa2d9a commit d972466

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,12 @@ def validate_hist_bins(s):
998998
# This entry can be either a cycler object or a
999999
# string repr of a cycler-object, which gets eval()'ed
10001000
# to create the object.
1001-
'axes.prop_cycle': [ccycler('color', 'bgrcmyk'),
1002-
validate_cycler],
1001+
'axes.prop_cycle': [
1002+
ccycler('color',
1003+
['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728',
1004+
'#9467bd', '#8c564b', '#e377c2', '#7f7f7f',
1005+
'#bcbd22', '#17becf']),
1006+
validate_cycler],
10031007
# If 'data', axes limits are set close to the data.
10041008
# If 'round_numbers' axes limits are set to the nearest round numbers.
10051009
'axes.autolimit_mode': [

matplotlibrc.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ backend : %(backend)s
315315
#axes.unicode_minus : True # use unicode for the minus symbol
316316
# rather than hyphen. See
317317
# http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes
318-
#axes.prop_cycle : cycler('color', 'bgrcmyk')
318+
#axes.prop_cycle : cycler('color',
319+
# ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728',
320+
'#9467bd', '#8c564b', '#e377c2', '#7f7f7f',
321+
'#bcbd22', '#17becf'])
319322
# color cycle for plot lines
320323
# as list of string colorspecs:
321324
# single letter, long name, or

0 commit comments

Comments
 (0)