How can I change the values dislayed in the top right corner of matplot figure? By default it is showing coordinates of the current cursor position but I'd prefer it to show the value of displayed data for current x cursor's coordinate. I marked these values in the attached picure. diagram
EDIT: here's a simple code. Pls tell me how to solve described above problem for this example:
import numpy as np
from matplotlib import pyplot as plt
x = np.sin(np.arange(0,100,0.1))
fig, ax = plt.subplots()
ax = plt.plot(x)
plt.show()