how to check dist between to pts on a curve?

Hello list,

I have plotted the following curve:

from pylab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s)
grid(True)
show()

The std matplotlib output gives only zoom, pan and save functions. I
need to check the distance between two points on the plotted curve by
clicking on the curve. How do I do this?

Thanks,
AMaity