[Matplotlib-users] problems returning to main program after ploting a figure

2009-01-05 Thread flo_wer
Hi, I am using matplotlib to create a figure in a pythonCard script that looks like this def on_button_mouseClick(self, event): import matplotlib.pyplot as plt plt.figure(1) for point in list: plt.plot([x],[y],'bo') plt.title('Water balance

Re: [Matplotlib-users] problems returning to main program after ploting a figure

2009-01-05 Thread flo_wer
It looks like you are trying to use pyplot is an embedded GUI and you might be better off trying to "embed" mpl in the GUI following the examples at... You were right about that. Thanks for the refererences. it helped a lot. The code is a bit longer now and contains parts from the examples that

Re: [Matplotlib-users] problems returning to main program after ploting a figure

2009-01-05 Thread John Hunter
On Mon, Jan 5, 2009 at 9:00 AM, flo_wer wrote: > > Hi, > I am using matplotlib to create a figure in a pythonCard script that looks > like this > > def on_button_mouseClick(self, event): >import matplotlib.pyplot as plt > >plt.figure(1) >for point in list: >plt.