I have some code, which plots points on graph in matplotlib. Something like this:
import matplotlib.pyplot as plt
points = [
(0.1, 2.1),
(0.25, 2.7),
(0.36, 2.9),
(0.8, 3.5),
]
x = list(map(lambda x: x[0], points))
y = list(map(lambda x: x[1], points))
plt.scatter(x, y)
plt.grid(True)
plt.show()
Is there any functionality in matplotlib (or probably any other library I can switch to), where I can click on point, and its coordinates will appear near this point? I know there is such a function in Excel, but I want to do that in Python.