-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathg5.py
More file actions
153 lines (88 loc) · 3.74 KB
/
g5.py
File metadata and controls
153 lines (88 loc) · 3.74 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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import os
#import conexiones as conx
#OBTENER DATOS
#j=1
#for i in [[6,10],[7,12],[8,14],[10,14]] :
##conx.set_conexiones(6,i[0],i[1])
#dat_i=str(j)+".dat"
#comando = "./abc -o purity_gamma -q "+str(i[0]+i[1]+1)+" --x "+str(i[0])+" --model model3_open --Jc 0.01 --Jp 1 --Js 1. --DJs 0. --bx 1. --bz 1. --Dbs 0. --t 1000 --Cseed -1 --Eseed 3462 --PARAMseed 9678 > grafica5-2-"
#os.system(comando + dat_i)
#j+=1
#j=1
##os.system("cp conexionesABC7.txt conexiones.txt")
#for i in [[6,10],[8,12],[10,14]] :
#dat_i=str(j)+".dat"
#comando = "./abc -o purity_gamma -q "+str(i[0]+i[1]+1)+" --x "+str(i[0])+" --model modelVar14 --Jc 0.01 --Jp 1 --Js 1. --DJs 0. --bx 1. --bz 1. --Dbs 0. --t 1000 --Cseed -1 --Eseed 3462 --PARAMseed 9678 > grafica5-6-"
#os.system(comando + dat_i)
#j+=1
#grafica5-2 : [[6,10],[7,12],[8,14],[10,14]]
#grafica5-3 : [[5,11],[4,12],[3,13],[2,14],[1,15]]
#grafica5-4 : [[6,10],[6,12],[6,15]]
#grafica5-5 : [[6,10],[8,10],[10,10]]
#grafica5-6 : arreglando el [[6,10],[8,12],[10,14]]
#HACER grafica3
from pylab import *
lines=['bs-','g<-','rp-','cv-','mD-','yH-','D-','h-','>-','H-','d-','x-','s-','+-']
jps=linspace(0,pi/2,76)
nu="\mu"
fig=figure(figsize=(14, 9)) # in inches!
ylabel("$P$ \n",fontsize=19)
xlabel("\n $\gamma$",fontsize=19)
xticks([])
yticks([])
fig.add_subplot(2,1,2)
dims=[[6,10],[8,12],[10,14]]
for i in range(1,4) :
a=loadtxt("grafica5-6-"+str(i)+".dat")
plot(jps,a,lines[i-1],label="$N_e="+str(dims[i-1][0])+"$ $N_{e^\prime}="+str(dims[i-1][1])+"$",markersize=12,markevery=2)
xticks((0,pi/4,pi/2),('$0$','$\pi/4$','$\pi/2$'),fontsize=19)
yticks((0.88,0.8,0.7,0.6,0.5),('$0.9$','$0.8$','$0.7$','$0.6$','$0.5$'),fontsize=19)
text(0+.006,0.84,"$0$",fontsize=19)
text(pi/4-0.06,0.84,"$\pi/2$",fontsize=19)
text(pi/4+0.006,0.84,"$0$",fontsize=19)
text(pi/2-0.06,0.84,"$\pi/2$",fontsize=19)
axis([0,pi/2,.5,.87])
legend(loc='lower center',fontsize=19)
tick_params(axis='both', # changes apply to the x-axis
which='both', # both major and minor ticks are affected
bottom='on', # ticks along the bottom edge are off
top='on', # ticks along the top edge are off
labelbottom='on',
length=10)
fig.add_subplot(2,1,1)
xticks([])
yticks([])
fig.add_subplot(2,2,1)
dims=[[6,10],[6,12],[6,15]]
for i in range(1,4) :
a=loadtxt("grafica5-4-"+str(i)+".dat")
plot(jps,a,lines[i-1],label="$N_{e^\prime}="+str(dims[i-1][1])+"$",markersize=12,markevery=2)
xticks((.0,pi/4,pi/2),('','$\pi/4$',''),fontsize=19)
yticks((0.9,0.8,0.7,0.6,0.52),('$0.9$','$0.8$','$0.7$','$0.6$','$0.5$'),fontsize=19)
axis([0,pi/2,.5,.87])
text(pi/4-.1,0.67,'$N_e=6$',fontsize=19)
legend(loc='lower center',fontsize=19)
tick_params(axis='both', # changes apply to the x-axis
which='both', # both major and minor ticks are affected
bottom='on', # ticks along the bottom edge are off
top='on', # ticks along the top edge are off
labelbottom='on',
length=10)
fig.add_subplot(2,2,2)
dims=[[6,10],[8,10],[10,10]]
for i in range(1,4) :
a=loadtxt("grafica5-5-"+str(i)+".dat")
plot(jps,a,lines[i-1],label="$N_e="+str(dims[i-1][0])+"$",markersize=12,markevery=2)
xticks((.0,pi/4,pi/2),('','$\pi/4$',''),fontsize=19)
yticks((0.9,0.8,0.7,0.6,0.5),('','','','',''),fontsize=19)
axis([0,pi/2,.5,.87])
legend(loc='lower center',fontsize=19)
text(pi/4-.1,0.67,"$N_{e^{\prime}}=10$",fontsize=19)
tick_params(axis='both', # changes apply to the x-axis
which='both', # both major and minor ticks are affected
bottom='on', # ticks along the bottom edge are off
top='on', # ticks along the top edge are off
labelbottom='on',
length=10)
fig.subplots_adjust(hspace=0,wspace=0)
savefig('different_sizes_3panels.png')