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

Skip to content

Commit 973f7ac

Browse files
committed
Update seaborn style
1 parent f2e0479 commit 973f7ac

27 files changed

+424
-208
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
API changes
2+
```````````
3+
4+
The the style changes introduced in seaborn 0.9 have been included in the
5+
Matplotlib seaborn styles.
6+
Most notably, the color palettes have been extended from 6 to 10 colors.
7+
The former 6-color palettes are still available via a '6' suffix in the
8+
style name, e.g. ``plt.style.use('seaborn-bright6')``.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Seaborn bright palette
2-
axes.prop_cycle: cycler('color', ['003FFF', '03ED3A', 'E8000B', '8A2BE2', 'FFC400', '00D7FF'])
3-
patch.facecolor: 003FFF
1+
# seaborn bright palette
2+
axes.prop_cycle: cycler('color', ['023EFF', 'FF7C00', '1AC938', 'E8000B', '8B2BE2', '9F4800', 'F14CC1', 'A3A3A3', 'FFC400', '00D7FF'])
3+
patch.facecolor: 023EFF
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# seaborn bright6 palette
2+
axes.prop_cycle: cycler('color', ['023EFF', '1AC938', 'E8000B', '8B2BE2', 'FFC400', '00D7FF'])
3+
patch.facecolor: 023EFF
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Seaborn colorblind palette
2-
axes.prop_cycle: cycler('color', ['0072B2', '009E73', 'D55E00', 'CC79A7', 'F0E442', '56B4E9'])
3-
patch.facecolor: 0072B2
1+
# seaborn colorblind palette
2+
axes.prop_cycle: cycler('color', ['0173B2', 'DE8F05', '029E73', 'D55E00', 'CC78BC', 'CA9161', 'FBAFE4', '949494', 'ECE133', '56B4E9'])
3+
patch.facecolor: 0173B2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# seaborn colorblind6 palette
2+
axes.prop_cycle: cycler('color', ['0173B2', '029E73', 'D55E00', 'CC78BC', 'ECE133', '56B4E9'])
3+
patch.facecolor: 0173B2
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Seaborn dark palette
2-
axes.prop_cycle: cycler('color', ['001C7F', '017517', '8C0900', '7600A1', 'B8860B', '006374'])
1+
# seaborn dark palette
2+
axes.prop_cycle: cycler('color', ['001C7F', 'B1400D', '12711C', '8C0800', '591E71', '592F0D', 'A23582', '3C3C3C', 'B8850A', '006374'])
33
patch.facecolor: 001C7F
Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
1-
# Seaborn common parameters
2-
# .15 = dark_gray
3-
# .8 = light_gray
1+
# seaborn dark style
2+
3+
# common parameters (see style_dict in seaborn.rcmod.axes_style()):
44
figure.facecolor: white
5-
text.color: .15
65
axes.labelcolor: .15
7-
legend.frameon: False
8-
legend.numpoints: 1
9-
legend.scatterpoints: 1
6+
107
xtick.direction: out
118
ytick.direction: out
129
xtick.color: .15
1310
ytick.color: .15
11+
1412
axes.axisbelow: True
15-
image.cmap: Greys
16-
font.family: sans-serif
17-
font.sans-serif: Arial, Liberation Sans, DejaVu Sans, Bitstream Vera Sans, sans-serif
1813
grid.linestyle: -
14+
15+
text.color: .15
16+
font.family: sans-serif
17+
font.sans-serif: Arial, DejaVu Sans, Liberation Sans, Bitstream Vera Sans, sans-serif
18+
1919
lines.solid_capstyle: round
20+
patch.edgecolor: w
21+
patch.force_edgecolor: True
22+
23+
# seaborn image.cmap is "rocket", but we do not have that
24+
image.cmap: Greys
2025

21-
# Seaborn dark parameters
26+
xtick.top: False
27+
ytick.right: False
28+
29+
30+
# dark parameters
2231
axes.grid: False
2332
axes.facecolor: EAEAF2
2433
axes.edgecolor: white
25-
axes.linewidth: 0
2634
grid.color: white
27-
xtick.major.size: 0
28-
ytick.major.size: 0
29-
xtick.minor.size: 0
30-
ytick.minor.size: 0
35+
axes.spines.left: True
36+
axes.spines.bottom: True
37+
axes.spines.right: True
38+
axes.spines.top: True
39+
40+
xtick.bottom: False
41+
ytick.left: False
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# seaborn dark6 palette
2+
axes.prop_cycle: cycler('color', ['001C7F', '12711C', '8C0800', '591E71', 'B8850A', '006374'])
3+
patch.facecolor: 001C7F
Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
1-
# Seaborn common parameters
2-
# .15 = dark_gray
3-
# .8 = light_gray
1+
# seaborn darkgrid style
2+
3+
# common parameters (see style_dict in seaborn.rcmod.axes_style()):
44
figure.facecolor: white
5-
text.color: .15
65
axes.labelcolor: .15
7-
legend.frameon: False
8-
legend.numpoints: 1
9-
legend.scatterpoints: 1
6+
107
xtick.direction: out
118
ytick.direction: out
129
xtick.color: .15
1310
ytick.color: .15
11+
1412
axes.axisbelow: True
15-
image.cmap: Greys
16-
font.family: sans-serif
17-
font.sans-serif: Arial, Liberation Sans, DejaVu Sans, Bitstream Vera Sans, sans-serif
1813
grid.linestyle: -
14+
15+
text.color: .15
16+
font.family: sans-serif
17+
font.sans-serif: Arial, DejaVu Sans, Liberation Sans, Bitstream Vera Sans, sans-serif
18+
1919
lines.solid_capstyle: round
20+
patch.edgecolor: w
21+
patch.force_edgecolor: True
22+
23+
# seaborn image.cmap is "rocket", but we do not have that
24+
image.cmap: Greys
2025

21-
# Seaborn darkgrid parameters
26+
xtick.top: False
27+
ytick.right: False
28+
29+
30+
# darkgrid parameters
2231
axes.grid: True
2332
axes.facecolor: EAEAF2
2433
axes.edgecolor: white
25-
axes.linewidth: 0
2634
grid.color: white
27-
xtick.major.size: 0
28-
ytick.major.size: 0
29-
xtick.minor.size: 0
30-
ytick.minor.size: 0
35+
axes.spines.left: True
36+
axes.spines.bottom: True
37+
axes.spines.right: True
38+
axes.spines.top: True
39+
40+
xtick.bottom: False
41+
ytick.left: False
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Seaborn deep palette
2-
axes.prop_cycle: cycler('color', ['4C72B0', '55A868', 'C44E52', '8172B2', 'CCB974', '64B5CD'])
1+
# seaborn deep palette
2+
axes.prop_cycle: cycler('color', ['4C72B0', 'DD8452', '55A868', 'C44E52', '8172B3', '937860', 'DA8BC3', '8C8C8C', 'CCB974', '64B5CD'])
33
patch.facecolor: 4C72B0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# seaborn deep6 palette
2+
axes.prop_cycle: cycler('color', ['4C72B0', '55A868', 'C44E52', '8172B3', 'CCB974', '64B5CD'])
3+
patch.facecolor: 4C72B0
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Seaborn muted palette
2-
axes.prop_cycle: cycler('color', ['4878CF', '6ACC65', 'D65F5F', 'B47CC7', 'C4AD66', '77BEDB'])
3-
patch.facecolor: 4878CF
1+
# seaborn muted palette
2+
axes.prop_cycle: cycler('color', ['4878D0', 'EE854A', '6ACC64', 'D65F5F', '956CB4', '8C613C', 'DC7EC0', '797979', 'D5BB67', '82C6E2'])
3+
patch.facecolor: 4878D0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# seaborn muted6 palette
2+
axes.prop_cycle: cycler('color', ['4878D0', '6ACC64', 'D65F5F', '956CB4', 'D5BB67', '82C6E2'])
3+
patch.facecolor: 4878D0
Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
# Seaborn notebook context
2-
figure.figsize: 8.0, 5.5
3-
axes.labelsize: 11
1+
# seaborn notebook context
2+
# see seaborn.rcmod.plotting_context()
3+
font.size: 12
4+
axes.labelsize: 12
45
axes.titlesize: 12
5-
xtick.labelsize: 10
6-
ytick.labelsize: 10
7-
legend.fontsize: 10
6+
xtick.labelsize: 11
7+
ytick.labelsize: 11
8+
legend.fontsize: 11
89

10+
axes.linewidth: 1.25
911
grid.linewidth: 1
10-
lines.linewidth: 1.75
11-
patch.linewidth: .3
12-
lines.markersize: 7
13-
lines.markeredgewidth: 0
12+
lines.linewidth: 1.5
13+
lines.markersize: 6
14+
patch.linewidth: 1
1415

15-
xtick.major.width: 1
16-
ytick.major.width: 1
17-
xtick.minor.width: .5
18-
ytick.minor.width: .5
16+
xtick.major.width: 1.25
17+
ytick.major.width: 1.25
18+
xtick.minor.width: 1
19+
ytick.minor.width: 1
1920

20-
xtick.major.pad: 7
21-
ytick.major.pad: 7
21+
xtick.major.size: 6
22+
ytick.major.size: 6
23+
xtick.minor.size: 4
24+
ytick.minor.size: 4
Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
# Seaborn paper context
2-
figure.figsize: 6.4, 4.4
3-
axes.labelsize: 8.8
1+
# seaborn paper context
2+
# see seaborn.rcmod.plotting_context()
3+
font.size: 9.6
4+
axes.labelsize: 9.6
45
axes.titlesize: 9.6
5-
xtick.labelsize: 8
6-
ytick.labelsize: 8
7-
legend.fontsize: 8
6+
xtick.labelsize: 8.8
7+
ytick.labelsize: 8.8
8+
legend.fontsize: 8.8
89

10+
axes.linewidth: 1
911
grid.linewidth: 0.8
10-
lines.linewidth: 1.4
11-
patch.linewidth: 0.24
12-
lines.markersize: 5.6
13-
lines.markeredgewidth: 0
12+
lines.linewidth: 1.2
13+
lines.markersize: 4.8
14+
patch.linewidth: 0.8
1415

15-
xtick.major.width: 0.8
16-
ytick.major.width: 0.8
17-
xtick.minor.width: 0.4
18-
ytick.minor.width: 0.4
16+
xtick.major.width: 1
17+
ytick.major.width: 1
18+
xtick.minor.width: 0.8
19+
ytick.minor.width: 0.8
1920

20-
xtick.major.pad: 5.6
21-
ytick.major.pad: 5.6
21+
xtick.major.size: 4.8
22+
ytick.major.size: 4.8
23+
xtick.minor.size: 3.2
24+
ytick.minor.size: 3.2
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Seaborn pastel palette
2-
axes.prop_cycle: cycler('color', ['92C6FF', '97F0AA', 'FF9F9A', 'D0BBFF', 'FFFEA3', 'B0E0E6'])
3-
patch.facecolor: 92C6FF
1+
# seaborn pastel palette
2+
axes.prop_cycle: cycler('color', ['A1C9F4', 'FFB482', '8DE5A1', 'FF9F9B', 'D0BBFF', 'DEBB9B', 'FAB0E4', 'CFCFCF', 'FFFEA3', 'B9F2F0'])
3+
patch.facecolor: A1C9F4
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# seaborn pastel6 palette
2+
axes.prop_cycle: cycler('color', ['A1C9F4', '8DE5A1', 'FF9F9B', 'D0BBFF', 'FFFEA3', 'B9F2F0'])
3+
patch.facecolor: A1C9F4
Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
# Seaborn poster context
2-
figure.figsize: 12.8, 8.8
3-
axes.labelsize: 17.6
4-
axes.titlesize: 19.2
5-
xtick.labelsize: 16
6-
ytick.labelsize: 16
7-
legend.fontsize: 16
1+
# seaborn poster context
2+
# see seaborn.rcmod.plotting_context()
3+
font.size: 24
4+
axes.labelsize: 24
5+
axes.titlesize: 24
6+
xtick.labelsize: 22
7+
ytick.labelsize: 22
8+
legend.fontsize: 22
89

9-
grid.linewidth: 1.6
10-
lines.linewidth: 2.8
11-
patch.linewidth: 0.48
12-
lines.markersize: 11.2
13-
lines.markeredgewidth: 0
10+
axes.linewidth: 2.5
11+
grid.linewidth: 2
12+
lines.linewidth: 3
13+
lines.markersize: 12
14+
patch.linewidth: 2
1415

15-
xtick.major.width: 1.6
16-
ytick.major.width: 1.6
17-
xtick.minor.width: 0.8
18-
ytick.minor.width: 0.8
16+
xtick.major.width: 2.5
17+
ytick.major.width: 2.5
18+
xtick.minor.width: 2
19+
ytick.minor.width: 2
1920

20-
xtick.major.pad: 11.2
21-
ytick.major.pad: 11.2
21+
xtick.major.size: 12
22+
ytick.major.size: 12
23+
xtick.minor.size: 8
24+
ytick.minor.size: 8
Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
# Seaborn talk context
2-
figure.figsize: 10.4, 7.15
3-
axes.labelsize: 14.3
4-
axes.titlesize: 15.6
5-
xtick.labelsize: 13
6-
ytick.labelsize: 13
7-
legend.fontsize: 13
1+
# seaborn talk context
2+
# see seaborn.rcmod.plotting_context()
3+
font.size: 18
4+
axes.labelsize: 18
5+
axes.titlesize: 18
6+
xtick.labelsize: 16.5
7+
ytick.labelsize: 16.5
8+
legend.fontsize: 16.5
89

9-
grid.linewidth: 1.3
10-
lines.linewidth: 2.275
11-
patch.linewidth: 0.39
12-
lines.markersize: 9.1
13-
lines.markeredgewidth: 0
10+
axes.linewidth: 1.875
11+
grid.linewidth: 1.5
12+
lines.linewidth: 2.25
13+
lines.markersize: 9
14+
patch.linewidth: 1.5
1415

15-
xtick.major.width: 1.3
16-
ytick.major.width: 1.3
17-
xtick.minor.width: 0.65
18-
ytick.minor.width: 0.65
16+
xtick.major.width: 1.875
17+
ytick.major.width: 1.875
18+
xtick.minor.width: 1.5
19+
ytick.minor.width: 1.5
1920

20-
xtick.major.pad: 9.1
21-
ytick.major.pad: 9.1
21+
xtick.major.size: 9
22+
ytick.major.size: 9
23+
xtick.minor.size: 6
24+
ytick.minor.size: 6

0 commit comments

Comments
 (0)