[yt-users] zlim on python notebooks

Matthew Turk matthewturk at gmail.com
Wed Mar 19 10:58:10 PDT 2014


Hi Elizabeth,

I think it just needs you to tell it which field to set the zlim on?

-Matt

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
>



More information about the yt-users mailing list