<div dir="ltr">Dear Latif,<div><br></div><div>I have done the modification. it is giving the following error.</div><div><br></div><div><br></div><div> Traceback (most recent call last):</div><div> File "slice_plot_const_density_scle.py", line 11, in <module></div>
<div> slc.set_zlim(5e-31,1e-29)</div><div> File "/data1/pdf/csurajit/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 99, in newfunc</div><div> rv = f(*args, **kwargs)</div><div>TypeError: set_zlim() takes at least 4 arguments (3 given)</div>
<div><br></div><div>what are the other arguments i have to give. </div><div><br></div><div>my script is this...</div><div><br></div><div><div>from yt.mods import *</div><div>file1="/app/run/csarkar/surajit/simulation_shock/simulation5/RD00"<br>
</div><div>file2="/RedshiftOutput00"</div><div>for kk in range(10, 67):</div><div> fn_i=str(kk)</div><div> fn=file1+fn_i+file2+fn_i # parameter file to load</div><div> print fn</div><div> pf = load(fn) # load data</div>
<div> slc = SlicePlot(pf, 'z', ['Density'], center=[0.5,0.5,0.5], width=(128,'mpc'))</div><div> slc.set_zlim(5e-31,1e-29)</div><div> #slc.SlicePlot.set_zlim(10e-31,10e-26, nticks = 6)</div>
<div> #slc.set_zlim(10e-31,10e-26, nticks = 6)</div><div> slc.save()</div></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 5, 2013 at 5:46 PM, Latif <span dir="ltr"><<a href="mailto:latifne@gmail.com" target="_blank">latifne@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Reju,<br></div>You can set plot limits with the following command. For further details have a look at documentation. <br>
<br>p.set_zlim(5, 1e2)<br><br><a href="http://yt-project.org/doc/cookbook/complex_plots.html" target="_blank">http://yt-project.org/doc/cookbook/complex_plots.html</a><br>
<br> I hope it helps.<br></div>Cheers<br></div>Latif<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 5, 2013 at 1:45 PM, Reju Sam John <span dir="ltr"><<a href="mailto:rejusamjohn@gmail.com" target="_blank">rejusamjohn@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear all,<div><br><div>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. </div>
<span><font color="#888888">
<div><br clear="all"><div><br></div>-- <br><div dir="ltr">Reju Sam John</div>
</div></font></span></div></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Reju Sam John</div>
</div>