How to extract numerical data from a matplotlib scatter plot in python? I have a scatter plot with about 19,000 data points. By visual inspection, I noticed some points for which I want to look at the corresponding numerical data from the data frame (basically a subset of the original data whose scatter plot we are looking at). 

Is there a way to isolate the data corresponding to the point(s) [when the coordinates of the data points are not apparent from the figure] ? 

Below is an example. How do I get data corresponding to the circled point on the plot?



Any response would be of great help.

Thanks.
You could also show the values for each point by using matplotlibs annotate command:

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(5)
y = np.random.randint(10, size=5)

fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_ylim(0,10)
plt.plot(x,y)
for i,j in zip(x,y):
    # xytext and textcoords are used to offset the labels
    ax.annotate("({},{})".format(i, j), xy=(i, j), xytext=(5, 5), textcoords='offset')
plt.show()