-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutil_kerinci_plots.py
51 lines (43 loc) · 1.33 KB
/
util_kerinci_plots.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
import matplotlib.ticker as plticker
import matplotlib.pyplot as plt
from lib import InverseCore as IC
from lib import GeothermalCore as GC
from scipy import stats
import errno
import os
import pickle
import timeit
import numpy as np
import matplotlib as mpl
mpl.use("pgf")
#----
#save a default copy of plotting settings
rc_default = plt.rcParams.copy()
#----
#some global plot settings
plt.rcParams['xtick.labelsize'] = 22
plt.rcParams['ytick.labelsize'] = 22
#plt.rcParams['ytick.minor.width'] = 0.5
plt.rcParams['axes.labelsize'] = 24
#plt.rcParams['axes.textsize'] = 24
plt.rcParams['axes.titlesize'] = 26
plt.rcParams['figure.autolayout'] = 'True'
plt.rcParams['font.family'] = 'serif'
plt.rcParams['text.usetex'] = 'True'
# along with pgf, uses latex default
plt.rcParams['font.serif'] = ['Computer Modern Roman']
#plt.rcParams['pgf.rcfonts'] = False
plt.rcParams['pgf.preamble'] = [
"\\usepackage{unicode-math}"] # unicode math setupr
plt.rcParams['legend.fontsize'] = 14
#r"\setmathfont{xits-math.otf}",
#r"\setmainfont{'Computer Modern Roman'}", # serif font via preamble
#]
#plt.rcParams['image.cmap'] = 'Greys'
#----load models etc of interest
#HERE.
#----predictive checks
#----parameter plots
labels = {'title': '',
'xlabel': r'Temperature ($^\circ$C)', r'ylabel': 'Elevation (m)'}
ticks = {'xticks_gap': 50, 'yticks_gap': 250}