-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleETHbeamer.py
47 lines (42 loc) · 1.52 KB
/
styleETHbeamer.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
from pylab import *
from itertools import cycle
#presentation
#fig_width_pt = 0.8*340.6956 # Get this from LaTeX using \showthe\columnwidth
#fs = 12
#report
#fig_width_pt = 0.8*455.24408 # Get this from LaTeX using \showthe\columnwidth
#fig_width_pt = 0.49*455.24408 # Get this from LaTeX using \showthe\columnwidth
# ETHbeamer
fig_width_pt = 0.6*307.28987
fs = 10
#PARCFD
# fig_width_pt = 4.330708661417323
# fs=10
inches_per_pt = 1.0/72.27 # Convert pt to inch
#golden_mean = (sqrt(5)-1.0)/2.0 # Aesthetic ratio
#golden_mean = (sqrt(5)-1.0) # Aesthetic ratio
golden_mean = 2./3. # Aesthetic ratio
#golden_mean = 1. # Aesthetic ratio
fig_width = fig_width_pt*inches_per_pt # width in inches
fig_height = fig_width*golden_mean # height in inches
fig_size = [fig_width, fig_height]
params = {'backend': 'pdf',
# 'font.family': 'serif',
# 'font.serif': 'Times',
#'font.serif': 'Computer Modern Roman',
'font.family': 'sans-serif',
#'font.sans-serif': 'Helvetica',
'font.sans-serif': 'Computer Modern Sans serif',
'text.fontsize': fs-2,
'legend.fontsize': fs-2,
'axes.labelsize': fs,
'xtick.labelsize': fs-2,
'ytick.labelsize': fs-2,
'text.usetex': True,
'figure.figsize': fig_size,
'figure.subplot.left': 0.07,
'figure.subplot.top': 0.86,
'figure.subplot.bottom': 0.23,
'figure.subplot.right': 0.97,
}
rcParams.update(params)