From: Cezary Czaplewski Date: Sat, 18 Nov 2017 10:53:10 +0000 (+0100) Subject: remd ex plot colormap X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=commitdiff_plain;h=6a1457d5576e153d19e4b812411f86745d452db7;hp=2269a7730011eff0b72bb39c6b28110b9cc9460a;p=django_unres.git remd ex plot colormap --- diff --git a/files/matplotlib_hist.py b/files/matplotlib_hist.py index f8a1105..168195b 100755 --- a/files/matplotlib_hist.py +++ b/files/matplotlib_hist.py @@ -62,7 +62,9 @@ plt.ylabel('bath temperature [K]') plt.xlabel('step*replica') replica=range(int(sys.argv[2])) -colors = cm.rainbow(np.linspace(0, 1, len(replica))) +#colors = cm.rainbow(np.linspace(0, 1, len(replica))) +cmap = plt.get_cmap('hot') +colors = cmap(np.linspace(0, 1, len(replica)*1.4)) for i,c in zip(replica,colors): yt=x0[r0==i] xt=(s0+r0*max(s0))[r0==i]