-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathg7.py
More file actions
72 lines (45 loc) · 1.63 KB
/
g7.py
File metadata and controls
72 lines (45 loc) · 1.63 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
from pylab import *
import os
import conexiones as conx
import nodos as nod
#PYTHON COLOR CYCLE
# b g r c p y
#OBTENER DATOS
#for i in range(1,7) :
#os.system("cp conexionesB"+str(i)+".txt conexiones.txt " )
#dat_i=str(i)+".dat"
#comando = "./abc -o purity_gamma -q 17 --x 6 --model modelConexRandB --Jc 0.01 --Jp 1 --Js 1. --DJs 0. --bx 1. --bz 1. --Dbs 0. --t 1000 --Cseed -1 --Eseed 3462 --PARAMseed 9678 > grafica7-"
#os.system(comando + dat_i)
#print i
##HACER grafica6
lines=['bo-','gD-','rp-','cv-','m^-','y>-','H-','d-','x-','s-','+-','D-','v-']
jps=linspace(0,pi/2,76)
nu="\mu"
labels=['A','B','C','D','E','F']
fig=figure()
fig.add_subplot(2,1,1)
xticks([])
yticks([])
conexionesB=[[[16,0],[2,10]],[[16,1],[2,10]],[[16,3],[2,10]],[[16,4],[2,10]],[[16,5],[2,10]],[[16,2],[2,10]]]
for i in range(1,7) :
conx=loadtxt("conexionesB"+str(i)+".txt")
conx=conx[1:]
fig.add_subplot(4,3,i)
nod.nodosAC(conx,lines[i-1])
fig.add_subplot(2,1,2)
for i in range(1,7) :
a=loadtxt("grafica7-"+str(i)+".dat")
plot(jps,a,lines[i-1],label="$"+labels[i-1]+"$")
xlabel("$\gamma$",fontsize=28)
xticks(arange(0,pi/2+.1,pi/4),('$0$','$\pi/4$','$\pi/2$'),fontsize=25)
yticks((0.8,0.7,0.6,0.5),('$0.8$','$0.7$','$0.6$','$0.5$'),fontsize=25)
ylabel("$P$",fontsize=28)
#legend(loc='upper left',fontsize=25)
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)
show()