Re: [matplotlib-devel] Bug with restore_background when mpl is embedded in wxpython

2009-05-10 Thread Elan Pavlov
Hi John and Jae-Joon, While it hardly solves *all* of the issues I've been having it does work for this problem:) Thanks a ton. As for committing it to the repository I'd be honored if Jae Joon agrees. Should I clean it up and remove the debugging prints? Elan "If stupidity got us into thi

Re: [matplotlib-devel] Bug with restore_background when mpl is embedded in wxpython

2009-05-09 Thread Jae-Joon Lee
On Sat, May 9, 2009 at 7:05 PM, Elan Pavlov wrote: > As for committing it to the repository I'd be honored if Jae Joon agrees. Sure, -JJ -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your produc

Re: [matplotlib-devel] Bug with restore_background when mpl is embedded in wxpython

2009-05-09 Thread John Hunter
On Sat, May 9, 2009 at 12:08 PM, Jae-Joon Lee 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 fram

Re: [matplotlib-devel] Bug with restore_background when mpl is embedded in wxpython

2009-05-09 Thread Jae-Joon Lee
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 modifi

[matplotlib-devel] Bug with restore_background when mpl is embedded in wxpython

2009-05-09 Thread Elan Pavlov
Hi, Restore_region does not appear to work when embedding mpl into wxpython. Attached is a simple modification of the cookbook animation (http://www.scipy.org/Cookbook/Matplotlib/Animations) to illustrate this problem. I modified the example so it is updated on mouse movements (followed by idle tim