On Thu, Dec 9, 2010 at 5:00 PM, Russell E. Owen <ro...@uw.edu> 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?
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 -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users