-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplot_specs.py
More file actions
34 lines (28 loc) · 957 Bytes
/
plot_specs.py
File metadata and controls
34 lines (28 loc) · 957 Bytes
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
import matplotlib as mpl
import seaborn as sns
import seaborn.objects as so
rcparams = {
"axes.spines.right": False,
"axes.spines.top": False,
"legend.frameon": False,
"font.size": 8,
"axes.titlesize": 8,
"axes.labelsize": 8,
"xtick.labelsize": 6,
"ytick.labelsize": 6,
"legend.fontsize": 6,
"legend.title_fontsize": 6,
"grid.linestyle": "",
"axes.labelsize": 8
}
def update():
# update matplotlib theme
mpl.rcParams.update(rcparams)
# udpate seaborn theme
theme = {**sns.axes_style("ticks"), **rcparams}
so.Plot.config.theme.update(theme)
var_name_map = {"mu_0": r"$\mu_0$", "sigma_0": r"$\sigma_0$", "sigma_r": r"$\sigma_r$", "sigma": r"$\sigma$",
"beta": r"$\beta$", "alpha": r"$\alpha$", "AsymmetricQuadratic": "AQC",
"QuadraticCostQuadraticEffort": "QCQE",
'alpha / beta': r"$\alpha | \beta$",
"effort": "effort"}