Ah, thanks for the report - I replied hastily before getting on a plane without looking at the source.
Hi Nathan,I did set the limits explicitly, but yt switches colorer before it saves. See below for the link for my source code and the last part of error message.Chang-Goohttp://paste.yt-project.org/show/4645/
yt : [INFO ] 2014-05-17 23:29:15,766 Making a fixed resolution buffer of (('gas', 'pok')) 512 by 512
yt : [INFO ] 2014-05-17 23:29:15,780 Making a fixed resolution buffer of (('athena', 'density')) 512 by 512
yt : [INFO ] 2014-05-17 23:29:15,795 Making a fixed resolution buffer of (('gas', 'nH')) 512 by 512
yt : [INFO ] 2014-05-17 23:29:15,810 Making a fixed resolution buffer of (('gas', 'density')) 512 by 512
yt : [INFO ] 2014-05-17 23:29:15,825 Making a fixed resolution buffer of (('gas', 'temp')) 512 by 512
yt : [INFO ] 2014-05-17 23:29:15,839 Making a fixed resolution buffer of (('athena', 'pressure')) 512 by 512
yt : [INFO ] 2014-05-17 23:29:15,854 Making a fixed resolution buffer of (('gas', 'pressure')) 512 by 512
yt : [WARNING ] 2014-05-17 23:29:15,889 Plot image for field ('gas', 'nH') has zero dynamic range. Min = Max = 3.
yt : [WARNING ] 2014-05-17 23:29:15,889 Switching to linear colorbar scaling.
yt : [WARNING ] 2014-05-17 23:29:16,364 Plot image for field ('gas', 'nH') has zero dynamic range. Min = Max = 3.
yt : [WARNING ] 2014-05-17 23:29:16,364 Switching to linear colorbar scaling.
yt : [INFO ] 2014-05-17 23:29:17,385 Saving plot /scratch/gpfs/changgoo/sntest_TI/png/n2_SN_dx2_L256_TE_multi_fm3/n2_SN_dx2_L256_TE_multi_fm3.0000_Slice_z_temp.png
yt : [INFO ] 2014-05-17 23:29:17,916 Saving plot /scratch/gpfs/changgoo/sntest_TI/png/n2_SN_dx2_L256_TE_multi_fm3/n2_SN_dx2_L256_TE_multi_fm3.0000_Slice_z_nH.pngOn Sat, May 17, 2014 at 7:50 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi Chang-GooIf you explicitly set the limits of the colorbar using the set_zlim function you will avoid the zero dynamic range check. That will also keep the colorbar limits the same from frame to frame.Nathan
On Saturday, May 17, 2014, Chang-Goo Kim <cgkim@astro.princeton.edu> wrote:
Chang-GooThanks,Hi all,When initial condition is uniform, it has zero dynamic range. Although it has no dynamic range, sometimes I need to plot it with log scale colorbar to make a movie with the same colorbar for later times. But, yt forced switch to linear colorbar. How can I make yt not to do that.
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org