-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot_ensemble_pair_funcs.py
49 lines (40 loc) · 2.06 KB
/
plot_ensemble_pair_funcs.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
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
from qcnico.plt_utils import setup_tex, MAC_ensemble_colours
ddir = '/Users/nico/Desktop/simulation_outputs/structural_characteristics_MAC/pair_corr_func/'
radii = np.load(ddir + 'radii.npy')
pair_func_pCNN = np.load(ddir + 'avg_pair_func_pCNN.npy')[:,1] * 0.5
pair_func_tempdot6 = np.load(ddir + 'avg_pair_func_tempdot6.npy')[:,1] * 0.5
pair_func_tempdot5 = np.load(ddir + 'avg_pair_func_tempdot5.npy')[:,1] * 0.5
radii_graphene = np.load(ddir + 'r_nvt300_avg.npy')
pair_func_graphene = np.load(ddir + 'pair_func_nvt300_avg.npy') * 0.5
print(pair_func_graphene.shape)
# clrs = MAC_ensemble_colours(clr_type='two_ensembles')
clrs = MAC_ensemble_colours()
# setup_tex(fontsize=90)
fontsize = 45
fontsize_axes = 60
rcParams['font.size'] = fontsize # define font size BEFORE instantiating figure
rcParams['figure.figsize'] = [6,5.7]
rcParams['mathtext.fontset'] = 'cm'
rcParams['font.family'] = 'sans-serif'
fig, ax = plt.subplots()
fig.subplots_adjust(bottom=0.1889,top=0.999,left=0.17,right=0.885)
# rcParams['font.size'] = 40
# rcParams['figure.figsize'] = [12.8,9.6]
# ax.plot(radii, pair_func_pCNN, c=clrs[0],label='$\delta$-aG',lw=2.5 ,zorder=2)
# ax.plot(radii, pair_func_pCNN, c='#5ca904',label='sAMC-500',lw=2.5 ,zorder=4)
ax.plot(radii, pair_func_pCNN, c='limegreen',label='sAMC-500',lw=2.5 ,zorder=4)
ax.plot(radii, pair_func_tempdot6, c=clrs[1],label='sAMC-q400',lw=2.5,zorder=3)
# ax.plot(radii, pair_func_tempdot5, c=clrs[1],label='$\chi$-aG',lw=2.5 ,zorder=2)
ax.plot(radii, pair_func_tempdot5, c=clrs[2],label='sAMC-300',lw=2.5 ,zorder=2)
#ax.plot(radii_graphene, pair_func_graphene,c='r',label='graphene',lw=0.8)
# ax.plot(radii_graphene, pair_func_graphene,c='#8018ff',label='graphene',lw=2.5 ,zorder=1)
ax.plot(radii_graphene, pair_func_graphene,c='#1897ff',label='graphene',lw=2.0 ,zorder=1)
ax.set_xlim([0,12])
ax.set_xlabel('Pair distance $r$ [$\mathsf{\AA}$]',fontsize=fontsize_axes)
ax.set_ylabel('$g(r)$',fontsize=fontsize_axes)
plt.legend(framealpha=1.0)
plt.show()