picking vertices of a line

hello, I’m using matplotlib and the wxAgg as a backend with wxpython for a statistical process control application. I would like to be able to pick points on an xy line and get the index of the point. I looked at the picker_demo demo and I have an idea of how this works but I’m a bit confused as to how to pick a vertex on a line, or if that isn’t possible how to pick a marker created by scatter(). I am also a bit confused as to how pylab is related to matplotlib. I was informed not to use pylab if using a backend and wxpython application, so I am only using matplotlib. Is there a similar bind function to use for binding the pick event to the callback function? thanks.



Get your email and more, right on the new Yahoo.com