How to get the cursor position relative to figure axes as the cursor moves

47 visualizaciones (últimos 30 días)
Hi, I'd like to get the current cursor position in a figure, relative to the axes. I tried with
get(gca, 'CurrentPoint');
but this only gives the position of the last clicked point, while I need the value to change as the cursor moves after clicking. In other words, I need something like
get(0, 'PointerLocation');
but relative to the axes.
Thank you.
LT
  3 comentarios
Luca Tarasi
Luca Tarasi el 23 de Jul. de 2019
Editada: Luca Tarasi el 23 de Jul. de 2019
(To the comments above)
Ok, thank you.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by