-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNicePlot.py
120 lines (89 loc) · 2.78 KB
/
NicePlot.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import numpy as np
import pylab as pl
import seaborn as sns
from Dynamic import *
def X1plot():
sns.set(font_scale=1.5)
pl.figure(figsize=(12,6))
pl.subplot(1,2,1)
w,X = np.loadtxt("X1DZ1re.dat").T
pl.plot(w,X)
w,X = np.loadtxt("X1DZ1im.dat").T
pl.plot(w,X)
pl.xlim([0.85e-3,1.1e-3])
pl.xlabel(r"$\omega$")
pl.ylabel(r"$\chi(\omega)$")
pl.ticklabel_format(style='sci',scilimits=(0,0))
pl.subplot(1,2,2)
w,X = np.loadtxt("X1DZ3re.dat").T
pl.plot(w,X)
w,X = np.loadtxt("X1DZ3im.dat").T
pl.plot(w,X)
pl.xlim([9.694658e-4,9.694661e-4])
pl.xlabel(r"$\omega$")
pl.ylabel(r"$\chi(\omega)$")
pl.ticklabel_format(style='sci',scilimits=(0,0))
pl.tight_layout()
pl.savefig("X1.pdf")
pl.show()
def FWHMvsDZplot():
sns.set(font_scale=1.5)
DZ, FWHM = np.loadtxt("PaperData/FWHMvDZ.dat")
pl.plot(DZ, FWHM)
pl.xlabel(r"$D_Z$")
pl.ylabel(r"$FWHM(D_Z)$")
pl.tight_layout()
pl.savefig("X1FWHM.pdf")
pl.show()
def plot_XvEF_VLDOS():
"""Plots the susceptibiltiy against EF for 2 sites on the VLDOS line
Keeps an inset of the LDOS for comparison"""
sns.set(font_scale=1.5)
EFlist = [0.0,0.5,0.7,0.8,0.9]
for EF in EFlist:
w,X = np.loadtxt("data/X_nE6_DZ3_EF%.1f.dat" % (EF,))
pl.plot(w,X)
pl.xlim([9e-4,1e-3])
pl.ticklabel_format(style='sci',scilimits=(0,0))
pl.axes([0.15,0.15,0.4,0.4])
x,y = np.loadtxt("PaperData/DOS_DZ1.dat")
pl.plot(x,y)
x,y = np.loadtxt("PaperData/DOSpoints_DZ1.dat")
pl.plot(x,y,'o')
pl.tick_params(labelbottom=False,labelleft=False) # labels along the bottom edge are off
pl.savefig("plotEF.pdf")
pl.show()
if __name__ == "__main__":
EFlist = [0.0,0.5,0.7,0.8,0.9]
for EF in EFlist:
w,X = np.loadtxt("data/X_nE6_DZ3_EF%.1f.dat" % (EF,))
pl.plot(w,X)
pl.show()
#sns.set(font_scale=1.5)
# EF plot
#EFlist = [0.0,0.5,0.7,0.8,0.9]
#for EF in EFlist:
#w,X = np.loadtxt("data/X_nE6_DZ1_EF%.1f.dat" % (EF,))
#pl.plot(w,X)
#pl.xlim([9e-4,1e-3])
#pl.ticklabel_format(style='sci',scilimits=(0,0))
#pl.axes([0.15,0.15,0.4,0.4])
#x,y = np.loadtxt("PaperData/DOS_DZ1.dat")
#pl.plot(x,y)
#x,y = np.loadtxt("PaperData/DOSpoints_DZ1.dat")
#pl.plot(x,y,'o')
#pl.tick_params(labelbottom=False,labelleft=False) # labels along the bottom edge are off
#pl.savefig("plotEF.pdf")
#pl.show()
#EFlist,FWHM = np.loadtxt("PaperData/FWHM2vEF_DZ3.dat")
#pl.plot(EFlist,FWHM,'-o')
#pl.xlabel(r"$E_F$")
#pl.ylabel(r"$FWHM(E_F)$")
#pl.ticklabel_format(style='sci',scilimits=(0,0))
#pl.axes([0.15,0.5,0.4,0.4])
#x,y = np.loadtxt("PaperData/DOS_DZ3.dat")
#pl.plot(x,y)
#pl.tick_params(labelbottom=False,labelleft=False) # labels along the bottom edge are off
#pl.tight_layout()
#pl.savefig("FWHMvEF_DZ3.pdf")
#pl.show()