On Tue, Feb 05, 2008 at 06:30:53PM -0500, Paul Kienzle wrote: > This failed for me in wx.
> I posted a patch r4943 which moves flush_events from Figure to Canvas, > and removes the Yield in gui_repaint which caused an exception in wx. > The showfig callback in FigureManagerWx had an unreferenced global > variable figwin which I removed. It wasn't obvious to me why this > was broken, or how long it has been broken, but the ginput example > works for me now. Yes, I had noticed this problem (did I signal it to the list, or did I forget ?) I wasn't too sure what to do about it, as I don't really know the MPL codebase. As a result I tested the principle under Wx in an older version of MPL, which did not have this problem, but also did not have Yield in gui_repaint. But you sorted out this problem, thanks a lot! > Setting the timeout to 0.01s for the busy loop in ginput seems excessive. > Since it is waiting for human interaction, generally 0.1 seconds is good > enough. I had gone for that originally, but it looked quite ugly when moving the window around. This busy waiting is quite ugly, but I have found a way of avoid it. IMHO it should be done in the toolkit's event loop, but it seems that trying to do it this would add gobbles of code for little gain. Cheers, Gaƫl ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel