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

53 ビュー (過去 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 件のコメント
Walter Roberson
Walter Roberson 2019 年 7 月 23 日
Figure window motion callback
Luca Tarasi
Luca Tarasi 2019 年 7 月 23 日
編集済み: Luca Tarasi 2019 年 7 月 23 日
(To the comments above)
Ok, thank you.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by