Re: [matplotlib-devel] Timers independent of canvases

2013-04-15 Thread Michiel de Hoon
Hi Mike, Ryan, Thanks for your comments. I have made a pull request; see: https://github.com/matplotlib/matplotlib/pull/1907 Best, -Michiel --- On Mon, 4/15/13, Michael Droettboom wrote: > From: Michael Droettboom > Subject: Re: [matplotlib-devel] Timers independent of canvase

Re: [matplotlib-devel] Timers independent of canvases

2013-04-15 Thread Michael Droettboom
Thanks for doing this. This looks like quite an improvement! Why don't you go ahead and make a pull request. I think on the whole the idea is sound, I just have a few minor comments that can probably be dealt with more efficiently in a PR. Mike On 04/12/2013 10:32 PM, Michiel de Hoon wrote:

Re: [matplotlib-devel] Timers independent of canvases

2013-04-15 Thread Ryan May
No opposition here. The "rationale" behind the original location was: 1) Easy way to make it properly dependent on the backend 2) Easy way to get a handle on a widget when necessary (for Tk and Wx IIRC) However, these were reasons of ease of implementation (aka. laziness) on my part, no real tech

[matplotlib-devel] Timers independent of canvases

2013-04-12 Thread Michiel de Hoon
Dear all, The animation code in matplotlib relies on timers to update the animated figures. Currently a new timer is created by calling new_timer on a canvas, as in >>> f = pylab.figure() >>> timer = f.canvas.new_timer() This seems a bit of a wrinkle. For example, you may want to associate a t