Here's a problem that's been driving me nuts, and I finally reduced it 
to a small self-contained script which can be found at 
http://gist.github.com/642538.  The issue is that the pick_event does 
not always provide the correct index into the plotted data.

In case this script only bugs out on my machine, let me describe the 
problem.  The callback should highlight whatever point is clicked.  This 
happens correctly with no problems when clicking on 9 out of the 10 
points in the figure.  But clicking the indicated point on the left-hand 
side (x[9], y[9]) also causes the indicated point on the top right 
(x[6], y[6]) to be highlighted as well.

Frustratingly, it seems that the numbers themselves are important for 
reproducing this bug!  Specifically, x[9]+=0.01 does not "fix" the bug . 
. . but x[9] += 0.1 makes the callback work correctly (i.e. only the 
clicked point is highlighted).  I'm guessing this is some sort of 
tolerance issue somewhere, but I can't find it.

possibly-relevant info:

matplotlib 1.0.0
numpy 1.3.0
Ubuntu 10.04 64bit

thanks,
-ryan

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to