remd plot all ex with multiplexing
[django_unres.git] / files / matplotlib_hist.py
index cf08458..7bbf4e9 100755 (executable)
@@ -59,7 +59,8 @@ plt.clf()
 plt.ylabel('bath temperature [K]')
 plt.xlabel('step*replica')
 
-replica=range(len(Tremd))
+replica=range(int(sys.argv[2]))
+colors = cm.rainbow(np.linspace(0, 1, len(replica)))
 for i,c in zip(replica,colors):
  yt=x[r==i]
  xt=(s+r*max(s))[r==i]