-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcmsstyle.py
52 lines (50 loc) · 1.52 KB
/
cmsstyle.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from matplotlib.pyplot import style as plt_style
import matplotlib.pyplot as plt
CMS = {
"font.sans-serif": ["TeX Gyre Heros", "Helvetica", "Arial"],
"font.family": "sans-serif",
"mathtext.fontset": "custom",
"mathtext.rm": "TeX Gyre Heros",
"mathtext.bf": "TeX Gyre Heros:bold",
"mathtext.sf": "TeX Gyre Heros",
"mathtext.it": "TeX Gyre Heros:italic",
"mathtext.tt": "TeX Gyre Heros",
"mathtext.cal": "TeX Gyre Heros",
"mathtext.default": "regular",
"figure.figsize": (10.0, 10.0),
"font.size": 26,
"axes.labelsize": "medium",
"axes.unicode_minus": False,
"xtick.labelsize": "small",
"ytick.labelsize": "small",
"legend.fontsize": "small",
"legend.handlelength": 1.5,
"legend.borderpad": 0.5,
"legend.frameon": False,
"xtick.direction": "in",
"xtick.major.size": 12,
"xtick.minor.size": 6,
"xtick.major.pad": 6,
"xtick.top": True,
"xtick.major.top": True,
"xtick.major.bottom": True,
"xtick.minor.top": True,
"xtick.minor.bottom": True,
"xtick.minor.visible": True,
"ytick.direction": "in",
"ytick.major.size": 12,
"ytick.minor.size": 6.0,
"ytick.right": True,
"ytick.major.left": True,
"ytick.major.right": True,
"ytick.minor.left": True,
"ytick.minor.right": True,
"ytick.minor.visible": True,
"grid.alpha": 0.8,
"grid.linestyle": ":",
"axes.linewidth": 2,
"savefig.transparent": False,
# "xaxis.labellocation": "right",
# "yaxis.labellocation": "top",
}
plt.style.use(CMS)