canvas objects

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

···

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.

Sorry if I wasn't clear, I already made the change when I committed
it, so all is well.

As for patches, small patches are fine just sent to the site. If you
are worried about them getting lost, post them to the sf site.

But if you send me a sf id, I'll add you to the developers list and
you can commit directly. You may want to check out the CODING_GUIDE i
the svn repository.

Thanks,
JDH

···

On 7/9/07, Paul Kienzle <pkienzle@...537...> wrote:

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?