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

Skip to content

Commit 2e7b6a5

Browse files
committed
Updated styles and templates for prop_cycle
1 parent 648d3ea commit 2e7b6a5

13 files changed

Lines changed: 17 additions & 15 deletions

lib/matplotlib/mpl-data/stylelib/bmh.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ axes.edgecolor: bcbcbc
1717
axes.grid : True
1818
axes.titlesize: x-large
1919
axes.labelsize: large
20-
axes.color_cycle: 348ABD, A60628, 7A68A6, 467821, D55E00, CC79A7, 56B4E9, 009E73, F0E442, 0072B2
20+
axes.prop_cycle: cycler('color', ['348ABD', 'A60628', '7A68A6', '467821', 'D55E00', 'CC79A7', '56B4E9', '009E73', 'F0E442', '0072B2'])
2121

2222
legend.fancybox: True
2323

lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# information on line properties.
77
lines.linewidth : 1.0 # line width in points
88
lines.linestyle : - # solid line
9-
lines.color : b # has no affect on plot(); see axes.color_cycle
9+
lines.color : b # has no affect on plot(); see axes.prop_cycle
1010
lines.marker : None # the default marker
1111
lines.markeredgewidth : 0.5 # the line width around the marker symbol
1212
lines.markersize : 6 # markersize, in points
@@ -198,7 +198,8 @@ axes.formatter.useoffset : True # If True, the tick label formatter
198198
axes.unicode_minus : True # use unicode for the minus symbol
199199
# rather than hyphen. See
200200
# http://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes
201-
axes.color_cycle : b, g, r, c, m, y, k # color cycle for plot lines
201+
axes.prop_cycle : cycler('color', 'bgrcmyk')
202+
# color cycle for plot lines
202203
# as list of string colorspecs:
203204
# single letter, long name, or
204205
# web-style hex

lib/matplotlib/mpl-data/stylelib/dark_background.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ text.color: white
88
axes.facecolor: black
99
axes.edgecolor: white
1010
axes.labelcolor: white
11-
axes.color_cycle: 8dd3c7, feffb3, bfbbd9, fa8174, 81b1d2, fdb462, b3de69, bc82bd, ccebc4, ffed6f
11+
axes.prop_cycle: cycler('color', ['8dd3c7', 'feffb3', 'bfbbd9', 'fa8174', '81b1d2', 'fdb462', 'b3de69', 'bc82bd', 'ccebc4', 'ffed6f'])
1212

1313
xtick.color: white
1414
ytick.color: white

lib/matplotlib/mpl-data/stylelib/fivethirtyeight.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ lines.solid_capstyle: butt
66

77
legend.fancybox: true
88

9-
axes.color_cycle: 30a2da, fc4f30, e5ae38, 6d904f, 8b8b8b
9+
axes.prop_cycle: cycler('color', ['30a2da', 'fc4f30', 'e5ae38', '6d904f', '8b8b8b'])
1010
axes.facecolor: f0f0f0
1111
axes.labelsize: large
1212
axes.axisbelow: true

lib/matplotlib/mpl-data/stylelib/ggplot.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ axes.labelsize: large
1616
axes.labelcolor: 555555
1717
axes.axisbelow: True # grid/ticks are below elements (e.g., lines, text)
1818

19-
axes.color_cycle: E24A33, 348ABD, 988ED5, 777777, FBC15E, 8EBA42, FFB5B8
19+
axes.prop_cycle: cycler('color', ['E24A33', '348ABD', '988ED5', '777777', 'FBC15E', '8EBA42', 'FFB5B8'])
2020
# E24A33 : red
2121
# 348ABD : blue
2222
# 988ED5 : purple

lib/matplotlib/mpl-data/stylelib/grayscale.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ axes.facecolor: white
1212
axes.edgecolor: black
1313
axes.labelcolor: black
1414
# black to light gray
15-
axes.color_cycle: 0.00, 0.40, 0.60, 0.70
15+
axes.prop_cycle: cycler('color', ['0.00', '0.40', '0.60', '0.70'])
1616

1717
xtick.color: black
1818
ytick.color: black
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Seaborn bright palette
2-
axes.color_cycle: 003FFF, 03ED3A, E8000B, 8A2BE2, FFC400, 00D7FF
2+
axes.prop_cycle: cycler('color', ['003FFF', '03ED3A', 'E8000B', '8A2BE2', 'FFC400', '00D7FF'])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Seaborn colorblind palette
2-
axes.color_cycle: 0072B2, 009E73, D55E00, CC79A7, F0E442, 56B4E9
2+
axes.prop_cycle: cycler('color', ['0072B2', '009E73', 'D55E00', 'CC79A7', 'F0E442', '56B4E9'])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Seaborn dark palette
2-
axes.color_cycle: 001C7F, 017517, 8C0900, 7600A1, B8860B, 006374
2+
axes.prop_cycle: cycler('color', ['001C7F', '017517', '8C0900', '7600A1', 'B8860B', '006374'])
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Seaborn deep palette
2-
axes.color_cycle: 4C72B0, 55A868, C44E52, 8172B2, CCB974, 64B5CD
2+
axes.prop_cycle: cycler('color', ['4C72B0', '55A868', 'C44E52', '8172B2', 'CCB974', '64B5CD'])

0 commit comments

Comments
 (0)