|
From: Sandro T. <mat...@gm...> - 2009-06-21 15:55:23
|
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
self.canvas.restore_region(self.bg)
4. <line>.set_ydata(...)
5. self.ax.draw_artist(self.<line>)
6. self.canvas.blit(self.ax.bbox)
Now, I tried to place a "self.ax.grid(True)" in almost every possible
position, but never a grid came out :(
What is the right approach to solve it? Thanks in advance
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
|