필터 지우기
필터 지우기

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

조회 수: 57 (최근 30일)
Luca Tarasi
Luca Tarasi 2019년 7월 23일
편집: Luca Tarasi 2019년 7월 23일
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
Luca Tarasi
Luca Tarasi 2019년 7월 23일
편집: Luca Tarasi 2019년 7월 23일
(To the comments above)
Ok, thank you.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by