X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=files%2Fmatplotlib_fit_hist.py;h=cbdafe0cd75bd3e53e952c0d2bc74c4ddf3d4331;hb=0ce9fc6e190bcbfc62c346ed4bcf25fb21e8cebc;hp=1f5050c3e9de22a1f53044d2f535f08c59659bc3;hpb=db52271014238aeb1e7124dea2625af9f1917721;p=django_unres.git diff --git a/files/matplotlib_fit_hist.py b/files/matplotlib_fit_hist.py index 1f5050c..cbdafe0 100755 --- a/files/matplotlib_fit_hist.py +++ b/files/matplotlib_fit_hist.py @@ -27,7 +27,7 @@ with open('md.stat','r') as f: if ncolumns==14: x,y= np.loadtxt('md.stat',usecols=(0,10),skiprows=10,unpack=True) - x1,e,r,gy= np.loadtxt('md.stat',usecols=(0,3,5,12),skiprows=0,unpack=True) + x1,e,r,gy,nc= np.loadtxt('md.stat',usecols=(0,3,5,12,6),skiprows=0,unpack=True) else: x,y= np.loadtxt('md.stat',usecols=(0,6),skiprows=10,unpack=True) x1,e,gy= np.loadtxt('md.stat',usecols=(0,3,8),skiprows=0,unpack=True) @@ -74,4 +74,10 @@ if ncolumns==14: plt.ylabel('RMSD') plt.plot(x1,r,'.') plt.savefig('md_rms.png') + + plt.clf() + plt.xlabel('step') + plt.ylabel('fraction of native side-chain concacts') + plt.plot(x1,nc,'.') + plt.savefig('md_fracn.png') \ No newline at end of file