I’m using matplotlib.imshow to get an interactive display of a 2D array. The x/y coordinate under the cursor is displayed at the bottom left of the window. Is it possible to also get the value of the array under the cursor as well?
I’m using matplotlib.imshow to get an interactive display of a 2D array. The x/y
Share
You simply need to re-assign
ax.format_coord. See this example from the documentation.(code lifted directly from example)