Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-12 Thread Joshua Koehler
That did the trick. I tried going through the source code but it just got too messy. How do I let the networkx developers know about this? On Jul 11, 2012, at 1:18 PM, Benjamin Root wrote: On Wed, Jul 11, 2012 at 12:45 PM, Joshua Koehler jjkoehl...@gmail.com wrote: Hi all, I am

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-12 Thread Daniel Hyams
You can either send them the link to this discussion, or just the little snippet concerning gcf() above; just taking care of that would be an improvement. On Thu, Jul 12, 2012 at 10:17 AM, Joshua Koehler jjkoehl...@gmail.comwrote: That did the trick. I tried going through the source code but it

[Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Joshua Koehler
Hi all, I am currently trying to have two panels each with their own figure instance so they can have separate plots. I can successfully update a plot if there is only one panel. As soon as I add a second panel, I get the following error when I try to update (replot) a plot (Showing last

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Daniel Hyams
To get rid of the networkx dependency, I just replaced my_plot() with this: def my_plot(figure): figure.clear() axes = figure.add_subplot(1,1,1) axes.plot([0,1,2],[2,3,4]) and also added self.panel2.update_display() in the constructor for MyFrame, and everything worked fine. Could

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Benjamin Root
On Wed, Jul 11, 2012 at 12:45 PM, Joshua Koehler jjkoehl...@gmail.comwrote: Hi all, I am currently trying to have two panels each with their own figure instance so they can have separate plots. I can successfully update a plot if there is only one panel. As soon as I add a second panel, I

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Daniel Hyams
Just from morbid curiosity, I installed networkx to see if I could see what is going on. And the answer to your original question is that no, matplotlib doesn't have problems with multiple wx panels; I do this all the time. Basically what is going on is that pylab is being used inside of

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Joshua Koehler
Here is the full traceback from the sample program: Traceback (most recent call last): File panel_test.py, line 54, in module frame = MyFrame(None) File panel_test.py, line 42, in __init__ self.panel1.update_display() File panel_test.py, line 19, in update_display

Re: [Matplotlib-users] Two panels (wxPython) containing separate figures

2012-07-11 Thread Daniel Hyams
Josh: I'm assuming that you saw the workaround two messages up? On Wed, Jul 11, 2012 at 1:41 PM, Joshua Koehler jjkoehl...@gmail.comwrote: Here is the full traceback from the sample program: Traceback (most recent call last): File panel_test.py, line 54, in module frame =