Re: [Matplotlib-users] Adding grid to animation with blit

2009-06-22 Thread Jae-Joon Lee
Without actual code, it is difficult to figure out what the real problem is. Anyhow, did you check the below animation example? http://matplotlib.sourceforge.net/examples/animation/animation_blit_gtk.html In the example, the grid is static (i.e., not animated). If what you want is to have the

Re: [Matplotlib-users] Adding grid to animation with blit

2009-06-22 Thread Sandro Tosi
Hi Jae-Joon On Mon, Jun 22, 2009 at 21:14, Jae-Joon Leelee.j.j...@gmail.com wrote: Without actual code, it is difficult to figure out what the real problem is. sorry I didn't attach a complete example but I would have to strip down a lot :) Anyhow, did you check the below animation example?

[Matplotlib-users] Adding grid to animation with blit

2009-06-21 Thread Sandro Tosi
Hello, I'm using blit to animate my plot, and I'd like to add a grid on it but I failed at it. What I do is: 1. prepare Figure, Axes, etc without plotting anything 2. save teh background with self.bg = self.canvas.copy_from_bbox(self.ax.bbox) (on graph update) 3. restore background with