-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplot_params.py
More file actions
47 lines (42 loc) · 1.59 KB
/
Copy pathplot_params.py
File metadata and controls
47 lines (42 loc) · 1.59 KB
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
# plot_params.py
# Set plotting parameters
global_params = {'figure.dpi': 300,
#'text.usetex': True,
#'text.latex.preamble': r"\usepackage{amsmath}",
'font.family': 'sans-serif',
#'font.sans-serif': ["Helvetica"],
'savefig.dpi': 300,
'savefig.bbox': 'tight',
'savefig.pad_inches': 0.025,
'savefig.transparent': True,
#'font.sans-serif': 'Computer Modern Roman',
}
full_params = {'figure.figsize': (7.3, 3.65),
'figure.titlesize': 12,
'axes.labelsize': 10,
'axes.titlesize': 12,
'legend.fontsize': 10,
'xtick.labelsize': 12,
'ytick.labelsize': 12,
}
half_params = {'figure.figsize': (3.5, 2.5),
'figure.titlesize': 10,
'lines.linewidth' : 1,
'lines.markersize' : 6,
'lines.markeredgewidth': 0.5,
'axes.labelsize': 9,
'axes.titlesize': 9,
'axes.linewidth': 0.5,
'legend.fontsize': 9,
'xtick.labelsize': 9,
'ytick.labelsize': 9,
'xtick.major.width': 0.5,
'ytick.major.width': 0.7,
'ytick.minor.width': 0.5,
'ytick.major.pad': 0.0,
}
# Add global parameters to the full_params and half_params dictionaries
full_params.update(global_params)
half_params.update(global_params)
def get_plot_params():
return full_params, half_params