[Yt-dev] Dumb colorbar question
david collins
antpuncher at gmail.com
Wed Feb 18 15:14:01 PST 2009
Hi--
I'm making a bunch of plots with a greyscale colormap. When I set the
zlim, things get rescaled properly, but the colors on the colorbar are
rgb, not grayscale.
I noticed by accident that the following works:
pf = lagos.TenPCStaticOutput('/lustre/scratch/collins/128_amr/OK1/DD2030/data2030')
pc = raven.PlotCollection(pf)
pc.add_projection('Density',0)
pc.save('rescaled_no')
pc.set_zlim(1e-3,5)
pc.save('rescaled_yes')
because of the first 'save' feature. Removing it makes a rgb
colorbar. What does save do that forces the colorbar map?
d.
More information about the yt-dev
mailing list