rconfig.py 934 Bytes
Newer Older
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
from matplotlib import rcParams

# FONT
rcParams['font.family'] = 'serif'
rcParams['font.size'] = '22'
try:
    rcParams['text.usetex'] = True  # need dvipng, ghostscript, and Agg
except:
    print(WARN + "I couls not set the LaTeX font sorry...")

# LINES
rcParams['lines.linewidth'] = 1.5
rcParams['lines.markersize'] = 6

# AXES
rcParams['axes.linewidth'] = 1.5

# TICKS
rcParams['xtick.major.pad'] = 10.
rcParams['xtick.major.size'] = 10.
rcParams['ytick.major.pad'] = 8.
rcParams['ytick.major.size'] = 10.
rcParams['xtick.minor.size'] = 5.
rcParams['ytick.minor.size'] = 5.
# Not compatible with old version of matplotlib
try:
    rcParams['xtick.major.width'] = 1.5
    rcParams['ytick.major.width'] = 1.5
    rcParams['xtick.minor.width'] = 1.5
    rcParams['ytick.minor.width'] = 1.5
    rcParams['xtick.minor.visible'] = False
    rcParams['ytick.minor.visible'] = False
except:
    pass

# DPI
rcParams['figure.dpi'] = 75.0