matplotlib values under cursor [duplicate]

You simply need to re-assign ax.format_coord. See this example from the documentation. (code lifted directly from example) “”” Show how to modify the coordinate formatter to report the image “z” value of the nearest pixel given x and y “”” import numpy as np import matplotlib.pyplot as plt import as cm X = 10*np.random.rand(5,3) … Read more