Arek Ke;dzior:
If you pick one of the curves in the close location to tangancy area,
the OnPick function will be executed twice (2 curves) and will display
2 markers. I want to find the shortest distance from the pick location
(mouse coord.) to a discrete point on the curve and draw marker on the
curve at this location (only one). See the line with "print lineObj"
Ok, now I -- perhaps -- understand.
This is a speculation...
Your approach cannot work, since the low level event handling issues TWO
pick events, one for each curve. Everything works very well, your
program finds the appropriate point ... on both curves, separately.
I suggest that you try to react to lower level mouse events. Look into
the Pick code within the Artist class. The system tries to pick all the
children, and here - I believe - resides your problem. You should
perhaps discriminate the picked target at this point.
Jerzy Karczmarczuk
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users