You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
793 B
Python
38 lines
793 B
Python
import numpy as np
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
|
|
|
nps=13
|
|
ps=np.linspace(0.1,.5,nps)
|
|
|
|
clabels=['Intermediate','high','low']
|
|
Cind='spanning'
|
|
scale=128
|
|
for con in range(3):
|
|
ci=np.zeros(nps)
|
|
for ip in range(nps):
|
|
folder=con*nps+ip
|
|
ci[ip]=np.mean(np.load('./test_old/'+str(folder)+'/GlobalConnectivityMetrics/'+str(scale)+'.npy',allow_pickle=True).item()[Cind])
|
|
ci_new=np.mean(np.load('./test_new/'+str(folder)+'/GlobalConnectivityMetrics/'+str(scale)+'.npy',allow_pickle=True).item()[Cind])
|
|
'''
|
|
print(ip,ci[ip],ci_new)
|
|
if ci_new!=0:
|
|
ci[ip]=ci[ip]/ci_new
|
|
if ci_new==0 and ci[ip]!=0:
|
|
ci[ip]=1000
|
|
|
|
if ci_new==0 and ci[ip]==0:
|
|
ci[ip]=1.0
|
|
'''
|
|
|
|
|
|
plt.plot(ps,ci,label=clabels[con]+'-'+str(con))
|
|
|
|
plt.legend()
|
|
plt.grid()
|
|
plt.show()
|
|
#plt.savefig(str(scale)+Cind+'.png')
|
|
|