summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2012-06-01 12:20:41 -0400
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:39 -0700
commit163fbfb6875483f16a890fd3951ad1d107a35ac6 (patch)
treec44a2250888eac9e251a68fef3f8eadb4c13704e
parent599bfdd94c1e980a532bc51db61f4849e79abea9 (diff)
downloadchroma-163fbfb6875483f16a890fd3951ad1d107a35ac6.tar.gz
chroma-163fbfb6875483f16a890fd3951ad1d107a35ac6.tar.bz2
chroma-163fbfb6875483f16a890fd3951ad1d107a35ac6.zip
Switch from hsv to jet_r color map because hsv has red at both ends, and
that is kind of confusion. jet_r starts from red and goes to blue.
-rw-r--r--chroma/color/colormap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/color/colormap.py b/chroma/color/colormap.py
index 6f3e056..61a2622 100644
--- a/chroma/color/colormap.py
+++ b/chroma/color/colormap.py
@@ -1,7 +1,7 @@
import numpy as np
import matplotlib.cm as cm
-def map_to_color(a, range=None, map=cm.hsv, weights=None):
+def map_to_color(a, range=None, map=cm.jet_r, weights=None):
a = np.asarray(a)
if range is None:
range = (a.min(), a.max())