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

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

 Réponse acceptée

Kazuya
Kazuya le 17 Oct 2018

0 votes

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

1 commentaire

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 書式設定と注釈 dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!