Re: [matplotlib-devel] Blitting for animations

2010-10-24 Thread Michiel de Hoon
--- On Sun, 10/24/10, Ryan May wrote: > > One solution is to add an .animation attribute to the > > Figure class, which is None by default (for non-animated > > drawing). > I'm not completely wild about it, because it just feels > wrong to put something specific to animation inside figure. OK I s

Re: [matplotlib-devel] Blitting for animations

2010-10-24 Thread Ryan May
[Putting this back on list after I mistakenly took it off.] On Fri, Oct 22, 2010 at 11:45 PM, Michiel de Hoon wrote: > Hi Ryan, > > Thanks for your reply. > > --- On Mon, 10/18/10, Ryan May wrote: >> In the course of adding the animations, I also >> added a "close_event" to the other backends, s

Re: [matplotlib-devel] Blitting for animations

2010-10-18 Thread Ryan May
On Sat, Oct 16, 2010 at 12:54 PM, Benjamin Root wrote: > Note that blitting isn't always a time-saver.  If most of your image is > animated and there is very little static background information, the > overhead of blitting will impact your rendering performance.  However, for > most purposes of ma

Re: [matplotlib-devel] Blitting for animations

2010-10-16 Thread Benjamin Root
On Fri, Oct 15, 2010 at 11:46 PM, Eric Firing wrote: > On 10/15/2010 04:37 PM, Michiel de Hoon wrote: > > Hello, > > > > Recently I tried to get animations to work for the Mac OS X backend with > the new timer framework by implementing a TimerMac class that inherits from > backend_bases.TimerBase

Re: [matplotlib-devel] Blitting for animations

2010-10-16 Thread Michiel de Hoon
OK, thanks. Then it makes sense to implement blitting for the Mac OS X backend as well. Unfortunately I have hit one snag: Drawing in Mac OS X / Quartz should be done from inside the event loop. You cannot take a graphics context and just start drawing to it; the graphics context won't be prope

Re: [matplotlib-devel] Blitting for animations

2010-10-15 Thread Eric Firing
On 10/15/2010 04:37 PM, Michiel de Hoon wrote: > Hello, > > Recently I tried to get animations to work for the Mac OS X backend with the > new timer framework by implementing a TimerMac class that inherits from > backend_bases.TimerBase. This seems to work fine; the code is uploaded to SVN > if

[matplotlib-devel] Blitting for animations

2010-10-15 Thread Michiel de Hoon
Hello, Recently I tried to get animations to work for the Mac OS X backend with the new timer framework by implementing a TimerMac class that inherits from backend_bases.TimerBase. This seems to work fine; the code is uploaded to SVN if you'd like to try it. I am not sure what to do about blit