import numpy as np import matplotlib.pyplot as plt rdir = "./lc8/" nps = 50 ps = np.linspace(0.0, 1.0, nps) clabels = ["Intermediate", "high", "low"] Cind = "npx" scale = 128 scales = [64, 128, 256, 512, 1024] con = 3 con = con - 1 for scale in range(len(scales)): ci = np.zeros(nps) for ip in range(nps): folder = con * nps + ip ci[ip] = np.mean( np.load( rdir + str(folder) + "/ConnectivityMetrics/" + str(scales[scale]) + ".npy", allow_pickle=True, ).item()[Cind] ) plt.plot(ps[2:-2], ci[2:-2], label=str(scales[scale])) plt.legend() plt.grid() plt.savefig(rdir + str(con + 1) + "-" + Cind + ".png")