Hi all,
Is it possible to restrict the mouse movements to the points of a graph (curve tracking) ?
So far I am able to obtain the location of the mouse in data coordinates if the mouse is over an axes.
A code snippet is attached.
Thanks in advance.
Nils
test_find_minima.py (962 Bytes)
No, but you can obtain the vertices of the line that are within a
tolerance of the clicked point using the picking functions. See the
tutorial at
http://matplotlib.sourceforge.net/users/event_handling.html
and the "pick*" demos at
http://matplotlib.sourceforge.net/examples/event_handling/index.html
JDH
···
On Tue, Jan 27, 2009 at 2:15 AM, Nils Wagner <nwagner@...1052...> wrote:
Hi all,
Is it possible to restrict the mouse movements to the points of a graph
(curve tracking) ?