Suggestion On Handling Plots

I do these steps:

    > def mouse_press(self, event):

You code is badly wrapped, which makes it really hard to read and
test. Could you post again being careful to make sure that the lines
don't wrap?

Also, see the recent wiki entry "Interactive Plotting" which addresses
related issues, particularly picking points in a scatter plot.