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

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
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

[Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread Ryan Krauss
I have a problem that probably highlights a problem with how I normally use mpl vs. how I should use it. I have some utility scripts that do various data processing tasks and also have convenience functions for plotting data using pylab. Almost all of my scripts have a line like this near the