Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
Thanks to Ken and John, I think I am off and running. Nice work on wxmpl Ken! I think it fills a significant need. The two attached files show a ridiculously simple example of what I am planning to do. It may be completely obvoius to others. test_plot.py is an example of a module that can be

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
Sorry, I just googled wxmpl and found your page and am now downloading it. I may have a more intelligent question momentarily. You may ignore that part of my response. Ryan On 3/19/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > Thanks for your thoughts Ken. Sorry, I assumed a bit on the context

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ken McIvor
Ryan, In my (limited) experience, it's dicey to mix pylab's plotting functionality and the OO API. I guess I'm a little unclear exactly what your use case is for this. It sounds like you're goal is to create a library of functions that operate on Figure instances, perhaps so you can use

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
I am learning the hard way that I don't know as much about matplotlib as I thought I did except for how to use pylab. I think I have managed to create a figure, add an axis, and plot something on it without pylab, but I don't know how to do the equivalent of show(). draw() needs a renderder and I

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread Ryan Krauss
Thanks John. I know I have some clean up to do, I just want to do it right so it isn't an annual (or more often) thing On 3/15/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 3/15/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > > > How should I be using matplotlib/pylab in my utility scripts so

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread John Hunter
On 3/15/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > How should I be using matplotlib/pylab in my utility scripts so that > they are compatible with embedding in wx? A good rule of thumb is to never import pylab at the top level for modules that need to be imported. In my own code, I often do so