On Sat, May 9, 2009 at 12:08 PM, Jae-Joon Lee <lee.j.j...@gmail.com> wrote: > Here is a slightly modified version of your script which works for me. > > I don't think this is the bug in mpl. Note that the ax.bbox does > change if the canvas size change. In your original script, the > copy_from_bbox is called before frame.Show() and this seems to cause a > mismatching bbox. > > My modified example is also not perfect. A new background image needs > to be saved whenever ax.bbox changes (e.g. when resizing canvas).
probably best way to do this is to connect to the draw_event, and update the background on the draw_event. I've updated the example and attached it -- do you mind if I commit it to the mpl examples dir (and does this solve all the issues you are having)? JDH
anim3.py
Description: Binary data
------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel