
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.

Save calls the _redraw_image method after clearing the axes. This is useful information. I had forgotten the magic recipe to get it to work. I will fix this bug, but maybe not today. Here's the ticket I made for it a few months ago: http://yt.enzotools.org/ticket/148 If anybody else wants to take a whack, please do so! -Matt On Wed, Feb 18, 2009 at 3:14 PM, david collins <antpuncher@gmail.com> wrote:
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. _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (2)
-
david collins
-
Matthew Turk