<div dir="ltr">Hi Elizabeth,<div><br></div><div>You need to give it the field name you want to set the zlim on as the first argument. </div><div><br></div><div>j</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Mar 19, 2014 at 1:57 PM, Elizabeth Tasker <span dir="ltr"><<a href="mailto:tasker@astro1.sci.hokudai.ac.jp" target="_blank">tasker@astro1.sci.hokudai.ac.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi,<div><br></div><div>Python notebooks seems to hate set_zlim (or rather demand an unreasonable number of arguments):</div><div><br></div><div>p.set_zlim(1e-28, 1e-20)</div><div><br></div>
<div><br></div><div><pre style="border-top-left-radius:0px;margin-bottom:0px;padding:0px;vertical-align:baseline;line-height:17.603300094604492px;word-break:break-all;border-top-right-radius:0px;font-size:14px;border-bottom-right-radius:0px;white-space:pre-wrap;margin-top:0px;word-wrap:break-word;border:0px;border-bottom-left-radius:0px">
<span style="color:rgb(139,0,0)">TypeError</span>                                 Traceback (most recent call last)
<span style="color:rgb(0,100,0)"><ipython-input-31-664f4ddf25f0></span> in <span style="color:rgb(70,130,180)"><module><span style="color:rgb(0,0,139)">()</span>
<span style="color:rgb(0,100,0)">----> 1<span style="color:rgb(139,0,0)"> </span>p</span><span style="color:rgb(0,0,139)">.</span></span>set_zlim<span style="color:rgb(0,0,139)">(</span><span style="color:rgb(70,130,180)">1e-28</span><span style="color:rgb(0,0,139)">,</span> <span style="color:rgb(70,130,180)">1e-20</span><span style="color:rgb(0,0,139)">)</span><span style="color:rgb(0,0,139)"></span>

<span style="color:rgb(0,100,0)">/Users/buttonmoon/yt/src/yt-hg/yt/visualization/plot_container.pyc</span> in <span style="color:rgb(70,130,180)">newfunc<span style="color:rgb(0,0,139)">(*args, **kwargs)</span>
<span style="color:rgb(0,100,0)">     52</span>     <span style="color:rgb(0,0,139)">@</span></span>wraps<span style="color:rgb(0,0,139)">(</span>f<span style="color:rgb(0,0,139)">)</span><span style="color:rgb(0,0,139)"></span>
<span style="color:rgb(0,100,0)">     53</span>     <span style="color:rgb(0,100,0)">def</span> newfunc<span style="color:rgb(0,0,139)">(</span><span style="color:rgb(0,0,139)">*</span>args<span style="color:rgb(0,0,139)">,</span> <span style="color:rgb(0,0,139)">**</span>kwargs<span style="color:rgb(0,0,139)">)</span><span style="color:rgb(0,0,139)">:</span><span style="color:rgb(0,0,139)"></span>
<span style="color:rgb(0,100,0)">---> 54<span style="color:rgb(139,0,0)">         </span>rv</span> <span style="color:rgb(0,0,139)">=</span> f<span style="color:rgb(0,0,139)">(</span><span style="color:rgb(0,0,139)">*</span>args<span style="color:rgb(0,0,139)">,</span> <span style="color:rgb(0,0,139)">**</span>kwargs<span style="color:rgb(0,0,139)">)</span><span style="color:rgb(0,0,139)"></span>
<span style="color:rgb(0,100,0)">     55</span>         args<span style="color:rgb(0,0,139)">[</span><span style="color:rgb(70,130,180)">0</span><span style="color:rgb(0,0,139)">]</span><span style="color:rgb(0,0,139)">.</span>_plot_valid <span style="color:rgb(0,0,139)">=</span> False<span style="color:rgb(0,0,139)"></span>
<span style="color:rgb(0,100,0)">     56</span>         args<span style="color:rgb(0,0,139)">[</span><span style="color:rgb(70,130,180)">0</span><span style="color:rgb(0,0,139)">]</span><span style="color:rgb(0,0,139)">.</span>_setup_plots<span style="color:rgb(0,0,139)">(</span><span style="color:rgb(0,0,139)">)</span><span style="color:rgb(0,0,139)"></span>

<span style="color:rgb(139,0,0)">TypeError</span>: set_zlim() takes at least 4 arguments (3 given)
</pre></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Elizabeth</div></font></span></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></div>