6 import matplotlib.pyplot as plt
7 import matplotlib.cm as cm
10 x,y= np.loadtxt('remd_all.stat',usecols=(11,3),unpack=True)
12 h,bin=np.histogram(y,bins=40,density=False)
14 plt.xlim(min(bin), max(bin))
16 plt.ylabel('number of samples')
17 plt.xlabel('potential energy [kcal/mol]')
19 Tremd=[240, 260, 280, 300, 320, 340, 360, 390]
20 colors = cm.rainbow(np.linspace(0, 1, len(Tremd)))
21 for T,c in zip(Tremd,colors):
23 h,bin=np.histogram(yt,bins=40,density=False)
24 center = (bin[:-1] + bin[1:]) / 2
25 plt.plot(center,h,'-',color=c)
26 # plt.bar(bin[:-1], h, width = bin[2]-bin[1],color=c)
28 plt.savefig('1L2Y_remd_ene_hist.png')
32 plt.xlabel('bath temperature [K]')
33 plt.ylabel('potential energy [kcal/mol]')
36 Tremd=[240, 260, 280, 300, 320, 340, 360, 390]
37 colors = cm.rainbow(np.linspace(0, 1, len(Tremd)))
38 for T,c in zip(Tremd,colors):
41 plt.plot(xt,yt,'.',color=c)
43 plt.savefig('1L2Y_remd_Tene.png')