title: Get mouse coordinates without clicking in matplotlib
body: <p>In a matplotlib plot, how can I continuously read the coordinates of the mouse when it is moved, but without waiting for clicks? This is possible in <a href="https://stackoverflow.com/questions/24797795">matlab</a>, and there is a <a href="https://mpld3.github.io/examples/mouse_position.html" rel="noreferrer">mpld3 plugin</a> to do almost exactly what I want, but I can't see how to actually <em>access</em> the coordinates from it. There is also the package <a href="https://github.com/joferkington/mpldatacursor" rel="noreferrer">mpldatacursor</a>, but this seems to require clicks. Searching for things like "matplotlib mouse coordinates without clicking" did not yield answers.</p>
  
  <p>Answers using additional packages such as mpld3 are fine, but it seems like a pure matplotlib solution should be possible.</p>