[yt-users] zlim on python notebooks

j s oishi jsoishi at gmail.com
Wed Mar 19 10:58:20 PDT 2014


Hi Elizabeth,

You need to give it the field name you want to set the zlim on as the first
argument.

j


On Wed, Mar 19, 2014 at 1:57 PM, Elizabeth Tasker <
tasker at astro1.sci.hokudai.ac.jp> wrote:

> Hi,
>
> Python notebooks seems to hate set_zlim (or rather demand an unreasonable
> number of arguments):
>
> p.set_zlim(1e-28, 1e-20)
>
>
> TypeError                                 Traceback (most recent call last)<ipython-input-31-664f4ddf25f0> in <module>()----> 1 p.set_zlim(1e-28, 1e-20)
> /Users/buttonmoon/yt/src/yt-hg/yt/visualization/plot_container.pyc in newfunc(*args, **kwargs)     52     @wraps(f)     53     def newfunc(*args, **kwargs):---> 54         rv = f(*args, **kwargs)     55         args[0]._plot_valid = False     56         args[0]._setup_plots()
> TypeError: set_zlim() takes at least 4 arguments (3 given)
>
>
>
> Elizabeth
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140319/5197c1d9/attachment.htm>


More information about the yt-users mailing list