Hi, I tried to set the limits of the colorbar using set_zlim as below... fn = "RedshiftOutput0002" pf = load(fn) pc = PlotCollection(pf,center=[0.5,0.5,0.5]) p = pc.add_slice("Density", 0) p.set_zlim(1e-31, 1e-30) pc.save() But I keep getting a plot with colorbar ranging between (1e-31,1e-28). I can't see what I am missing. shankar
Hi Shankar,
But I keep getting a plot with colorbar ranging between (1e-31,1e-28). I can't see what I am missing.
This is a bug. Inserting the line p.set_autoscale(False) above the set_zlim line fixes it. I've been trying to track down the right way to fix this bug for some time, and you can see the results of this so far in the mercurial repository in the named branch "plotting-refactor". I've committed a hotfix that will execute this fix inside set_zlim in revision 1553 to both 1.5 and trunk. Please let us know if this works for you, Matt
I updated my copy of yt with 1553. Now, set_zlim works ok. thanks shankar -----Original Message----- From: yt-users-bounces@lists.spacepope.org on behalf of Matthew Turk Sent: Wed 12/2/2009 2:25 PM To: Discussion of the yt analysis package Subject: Re: [yt-users] limits of the colorbar Hi Shankar,
But I keep getting a plot with colorbar ranging between (1e-31,1e-28). I can't see what I am missing.
This is a bug. Inserting the line p.set_autoscale(False) above the set_zlim line fixes it. I've been trying to track down the right way to fix this bug for some time, and you can see the results of this so far in the mercurial repository in the named branch "plotting-refactor". I've committed a hotfix that will execute this fix inside set_zlim in revision 1553 to both 1.5 and trunk. Please let us know if this works for you, Matt _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Agarwal, Shankar
-
Matthew Turk