Accessing colormap colors
![](https://secure.gravatar.com/avatar/db5d92e21dc4a7dbb834346e5de6af1e.jpg?s=120&d=mm&r=g)
Aug. 18, 2014
10:42 a.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
3829
Age (days ago)
3829
Last active (days ago)
0 comments
1 participants
participants (1)
-
Massimo Gaspari