I'm not sure what cm is in this context, but if you use the string key "jet" instead of cm.jet, it should work. (It does for me.)
On Fri, Jan 11, 2013 at 11:27 AM, Renyue Cen email@example.com wrote:
Thanks for your prompt reply.
I was using imshow in conjunction with tf = ColorTransferFunction((lim1,lim2)) and tf.add_layers(8,colormap=mycmap,w=widt,alpha=alpha), for which I can use mycmap=cm.spectral or cm.spectral to mention a few, but when I try cm.jet, it does not seem to exist, and I am still trying to find a suitable colormap for this application.
On Jan 11, 2013, at 11:21 AM, Matthew Turk wrote:
This list shows all of the colormaps available for anything that uses matplotlib (such as projections, profiles, but not anything that uses write_image or write_png or snapshot):
You can also use these colormaps anywhere:
algae (default) kamae black_green cubehelix
There are also a whole bunch of IDL and other colormaps that are accessible, although I have not used them, which you can see a list of by doing:
from yt.visualization._colormap_data import color_map_luts print "\n".join(sorted(color_map_luts))
On Fri, Jan 11, 2013 at 11:17 AM, Renyue Cen firstname.lastname@example.org wrote:
Where is the list of available colormaps located so I can see their colors?
yt-users mailing list email@example.com http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org