[Yt-dev] Request for Review: Pylab in reason

j s oishi jsoishi at gmail.com
Tue May 3 14:05:32 PDT 2011


Hi All,

Yup, works nicely for me. Very nice, very magic. I'm looking forward
to using this. I'd like to add that pylab.savefig('blah.pdf') works
too, saving the images to the directory you ran yt from. This is going
to be great.

j

On Tue, May 3, 2011 at 1:36 PM, Matthew Turk <matthewturk at gmail.com> wrote:
> Hi all,
>
> I added what I think is support for Pylab to the current tip of the yt repo.
>
> What it does is create (dynamically) a new backend that overloads the
> interactivity commands in pylab to dump out images and display them
> inline.  I had to hack around a little bit to make sure that it worked
> if you had specified a GUI engine in your matplotlibrc.
>
> All of the work is done in extdirect_repl.py, in the reason_pylab and
> deliver_image functions.
>
> Anyway, if some people could test it out, see if it works to do things like:
>
> pylab.plot( ... )
>
> and so on and so forth, that'd be great.  I've been using it and it
> works for me, and I'm pretty pumped about having general plotting
> included in Reason, so I'd like to hear if it works for others.
>
> -Matt
>
> _______________________________________________
> Yt-dev mailing list
> Yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>



More information about the yt-dev mailing list