I want to find the distance between two points on a scatter plot. For clarification see the image: Scatter Plot
The challenge is to identify the points using an algorithm (as I want to automate it as much as possible), the rest is just getting distance between coordinates. I would appreciate if someone points me in the right direction.