On Mon, Jul 09, 2007 at 10:37:35AM -0500, John Hunter wrote: > One minor bug I fixed for non wx backends in the (very cool) > figure.canvas.mpl_connect("motion_notify_event",figure.canvas.hilite) > functionality. gui_repaint is a wx only method, and I just commented > it out and replaced the "draw" with a draw_idle. This should work > across backends. Note draw_idle by default in backend_bases just > calls draw, but backends can override it to use their GUIs idle > handler. This is usually a good idea so you don't get an event pile > up. In particular, it is not implemented for backend_wx, so one of > you wx gurus/users may want to consider adding it, because for > interactive stuff like motion events, it can be a big win.
This change works for me under wx os OS X. I got the gui_paint idea from examples/dynamic_demo_wx.py. Replacing gui_paint with draw_idle seems to work okay there as well. I'll create a patch. Do you small patches like this on tracker as well? - Paul ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel