Re: [Matplotlib-users] Memory leak; user error or bug?

2010-12-11 Thread Friedrich Romstedt
2010/12/1 Russell E. Owen ro...@uw.edu: I'm seeing a nasty memory leak in my strip chart widget using matplotlib 1.0, TkAgg and Mac OS X 10.5 I've posted a minimal version here: http://www.astro.washington.edu/users/rowen/python/MinimalStripChartWdg. py It doesn't seem to matter if I use

[Matplotlib-users] keypress event passing arguments

2010-12-11 Thread John
Hi all, I have set up an event handler and function to perform actions when a user presses certain keys in the plot window. The function needs access to variables that are in the main function. How do I pass these variables to the function. In OnKeyPress, ImageNumber and Li are objects in the

Re: [Matplotlib-users] Memory leak; user error or bug?

2010-12-11 Thread Russell Owen
I am sort of adding data points; what I'm really doing is appending data to a python list and setting the data in the Line object to that list. The list gets shortened every once in awhile to keep the amount of data from getting too large. It turns out the leak is in canvas.draw(), which I

[Matplotlib-users] Updating tick labels on animated plot

2010-12-11 Thread Søren Nielsen
Hi, I have an animated plot and I'm having trouble updating the tick labels after I blit new data to the canvas. I've looked through the documentation and it's not clear to me how I can update the x and y axis ticks during an animation. Anyone here know how to do this? Best, Soren