Accessing colormap colors

Aug. 18, 2014
12:42 p.m.
Hi all, I'd like to plot a line with a given color taken from a given colormap. I am trying to access e.g. pylab.cm.jet(0.5) in order to get the tuple to put in pylab.plot(…, ... , color = …) However it gives me the error: TypeError: 'dict' object is not callable If I remove the import line from yt.mods import * it works fine though. Should I call something else within yt environment? By the way, is there another quick way to access a given colormap color? Thanks, Max
3835
Age (days ago)
3835
Last active (days ago)
0 comments
1 participants
participants (1)
-
Massimo Gaspari