I explored the memory leak in my strip chart widget some more and found
that it is caused by calling canvas.draw(), where canvas is:
figure = matplotlib.figure.Figure(figsize=(8, 2), frameon=True)
canvas = FigureCanvasTkAgg(figure, self)
canvas.show() exhibits exactly the same problem.
So...what is the right way to redraw a plot after its X axes have been
changed?
-- Russell
draw() *is* the right way. It should definitely not be leaking.
Hopefully someone familiar with those kinds of problems can take a
look. (I just don't have the time right now.)
Ryan
ยทยทยท
On Thu, Dec 9, 2010 at 5:00 PM, Russell E. Owen <rowen@...2756...> wrote:
I explored the memory leak in my strip chart widget some more and found
that it is caused by calling canvas.draw(), where canvas is:
figure = matplotlib.figure.Figure(figsize=(8, 2), frameon=True)
canvas = FigureCanvasTkAgg(figure, self)
canvas.show() exhibits exactly the same problem.
So...what is the right way to redraw a plot after its X axes have been
changed?
--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma