[Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread vehemental
Hello, I' m new to MPL...and rather new to Python... so I hope I wont say too much stupidities... I' m writing a little Fileviewer...that will plot the data of the file...depending on some user inputs (not implemented yet) so I started playing around...using the Tk embbeded plot exemple... I

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 6:20 AM, vehemental jimmy.pail...@gmail.com wrote: The program is working as expected...except memory wise...the program keeps growing... each time plot is pressed it's growing...I believe it's due to some poor programming on my side, but I can't really put my finger

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 9:44 AM, John Hunter jdh2...@gmail.com wrote: By default matplotlib overplots, so every time you call plot a new line is added to the canvas. You can turn this behavior off using the hold method Sorry, on second look it appears you have a more serious problem.

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread vehemental
Thanks. I understood the explanation you gave me...was not so sure how it translated in the language... so what i did is creating a init_plot method...that is creating a figure once and for all (empty) , attaching it to a canvas and pack it... then I have my showplot routine activated by the