Seeing index instead of x-value

How can one see the index of the x-value and its y-value instead of its x,y-values when moving the cursor inside the x-axis of a 2D matplotlib y vs x figure?

N?r du har kontakt med oss p? Uppsala universitet med e-post s? inneb?r det att vi behandlar dina personuppgifter. F?r att l?sa mer om hur vi g?r det kan du l?sa h?r:

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>