Hi Reju,I believe another argument which should be provided is the variable name you would like to control, say, changewhat are the other arguments i have to give.slc.set_zlim(5e-31,1e-29)to:slc.set_zlim('Density', 5e-31, 1e-29)This helps if you have multiple variable to plot in the same figure and want to control them separately.Best wishes,SuoqingOn Aug 5, 2013, at 8:31 PM, Reju Sam John <rejusamjohn@gmail.com> wrote:Dear Latif,I have done the modification. it is giving the following error.Traceback (most recent call last):File "slice_plot_const_density_scle.py", line 11, in <module>slc.set_zlim(5e-31,1e-29)File "/data1/pdf/csurajit/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 99, in newfuncrv = f(*args, **kwargs)TypeError: set_zlim() takes at least 4 arguments (3 given)what are the other arguments i have to give.my script is this...from yt.mods import *file1="/app/run/csarkar/surajit/simulation_shock/simulation5/RD00"
file2="/RedshiftOutput00"for kk in range(10, 67):fn_i=str(kk)fn=file1+fn_i+file2+fn_i # parameter file to loadprint fnpf = load(fn) # load dataslc = SlicePlot(pf, 'z', ['Density'], center=[0.5,0.5,0.5], width=(128,'mpc'))slc.set_zlim(5e-31,1e-29)#slc.SlicePlot.set_zlim(10e-31,10e-26, nticks = 6)#slc.set_zlim(10e-31,10e-26, nticks = 6)slc.save()_______________________________________________On Mon, Aug 5, 2013 at 5:46 PM, Latif <latifne@gmail.com> wrote:
LatifCheersHi Reju,You can set plot limits with the following command. For further details have a look at documentation.
p.set_zlim(5, 1e2)
http://yt-project.org/doc/cookbook/complex_plots.html
I hope it helps.On Mon, Aug 5, 2013 at 1:45 PM, Reju Sam John <rejusamjohn@gmail.com> wrote:
_______________________________________________Dear all,I am trying to visualize the density slices of my simulation output at different red-shift. But the output files (RedshiftOutput0010_Slice_z_Density.png to RedshiftOutput0058_Slice_z_Density.png) are density color coded differently. My problem is how to make the density color code scale common for all.--Reju Sam John
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
--Reju Sam John
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org