Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-05-14 Thread Jae-Joon Lee
This is now committed to svn trunk, with slight changes in its api. An example is added (examples/animation/animation_blit_gtk2.py). -JJ -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-24 Thread Jae-Joon Lee
On Thu, Apr 23, 2009 at 2:32 PM, Elan Pavlov epav...@gmail.com wrote: Hi Jae-Joon, Thanks a ton! The problem is actually not the frequency of changes. The current method uses draw_artist on each update. However, the time for draw_artist is linear in the *number* of points so for graphs with a

[Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-23 Thread Elan Pavlov
Hi, I'm trying to use matplotlib for animating data as it is received from an online source (online in the algorithmic sense not internet:). I'd like the graph plot to be updated with high frequency since the data changes rapidly. I've used the BufferRegion with copy_from_bbox / restore_region

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-23 Thread Jae-Joon Lee
On Mon, Apr 20, 2009 at 4:34 PM, Elan Pavlov e...@mit.edu wrote: Hi, I'm trying to use matplotlib for animating data as it is received from an online source (online in the algorithmic sense not internet:). I'd like the graph plot to be updated with high frequency since the data changes

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-23 Thread Elan Pavlov
Hi Jae-Joon, Thanks a ton! The problem is actually not the frequency of changes. The current method uses draw_artist on each update. However, the time for draw_artist is linear in the *number* of points so for graphs with a large amount of data it is extremely inefficient. Your patch means that

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region

2009-04-22 Thread Ryan May
On Wed, Apr 22, 2009 at 10:11 AM, Elan Pavlov epav...@gmail.com wrote: I'm trying to use matplotlib for animating data as it is received from an online source (online in the algorithmic sense not internet:). I'd like the graph plot to be updated with high frequency since the data changes

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region

2009-04-22 Thread Elan Pavlov
Yes, I'm using the line2D.set_data function along with the draw_artist (and a blit). I haven't made a line collection object since I don't think it will speed it up by around the factor 5 that I want. I'll try that but I still think that the ability to grab a large section of the canvas and move