From 6a1457d5576e153d19e4b812411f86745d452db7 Mon Sep 17 00:00:00 2001 From: Cezary Czaplewski Date: Sat, 18 Nov 2017 11:53:10 +0100 Subject: [PATCH] remd ex plot colormap --- files/matplotlib_hist.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] -- 1.7.9.5