<div dir="ltr">Thank You dear John...<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 2:40 AM, John Wise <span dir="ltr"><<a href="mailto:jwise@physics.gatech.edu" target="_blank">jwise@physics.gatech.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Reju,<br>
<br>
The slices from the plot collection cannot be modified in that manner. Try separating each modification in its own command.  For example,<br>
<br>
p=pc.add_slice("Temperature", 2)<br>
p.set_log_field(False)<br>
p.set_zlim(1e4,5e7)<br>
pc.save()<br>
<br>
Also, the .save() function only works on plot collections.  You can use the .save_image() or .save_pdf() functions for individual plots.<br>
<br>
This all being said, I'd recommend moving to plot window interface, e.g. SlicePlot(...), which enables you to act on the plot window objects, like you original script does.<br>
<br>
Cheers,<br>
John<div><div class="h5"><br>
<br>
<br>
On 03/10/2014 03:19 PM, Reju Sam John 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">
Dear all,<br>
I am using the following code to create a slice plot of Temperature with<br>
a fixed temperature scale (1e4,5e7).<br>
pf = load(fn)<br>
pc = PlotCollection(pf)<br>
p=pc.add_slice("Temperature", 2).set_log_field(False)<br>
p.set_zlim(1e4,5e7).save()<br>
<br>
but I am getting following error<br>
<br>
p.set_zlim(1e4,5e7).save()<br>
AttributeError: 'NoneType' object has no attribute 'set_zlim'<br>
<br>
Please suggest me solution.<br>
Thank You,<br>
<br>
<br>
--<br>
Reju Sam John<br>
<br>
<br></div></div>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
John Wise<br>
Assistant Professor of Physics<br>
Center for Relativistic Astrophysics, Georgia Tech<br>
<a href="http://cosmo.gatech.edu" target="_blank">http://cosmo.gatech.edu</a><br>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Reju Sam John</div>
</div>