グラフ上のプロットラインにイベントを設定

matlab2013bを使用し、matlab gui にてツールを作っています。 グラフ上に複数のラインをプロットしています。 マウスがどの線の上にマウスオーバーされたのか知ることはできますでしょうか。 そもそもプロットされたラインにマウスオーバーのイベントを設定できますでしょうか。

 Accepted Answer

Kazuya
Kazuya on 17 Oct 2018

0 votes

Lineオブジェクトのプロパティに ButtonDownFcn があるので、クリックすれば何とかなりそうな気がしますが、マウスオーバーはどう実装しすればいいかはパッと思いつきません。 https://jp.mathworks.com/help/matlab/ref/matlab.graphics.primitive.line-properties.html

1 Comment

yuuji yamada
yuuji yamada on 19 Oct 2018
御回答ありがとうございました。

Sign in to comment.

More Answers (0)

Categories

Find more on 書式設定と注釈 in Help Center and File Exchange

Asked:

on 16 Oct 2018

Commented:

on 19 Oct 2018

Community Treasure Hunt

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

Start Hunting!