- https://www.mathworks.com/matlabcentral/answers/415382-attach-click-event-to-figure
- https://www.mathworks.com/matlabcentral/answers/269093-firing-event-if-mouse-enters-graphic-objects-figure-axes-button-etc
- https://www.mathworks.com/matlabcentral/answers/306359-challenge-how-to-interact-with-matlab-figure-using-mouse-events
Add a dynamic plot when hover over another plot
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi all,
I want to be able to display a dynamic plot when hovering over a plot. For example, in the following image,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/564716/image.jpeg)
I want to be able to display a dynamic plot (that is, if I move the mouse over for example the blue line, the plot that I'm showing over this static plot should be in continuous change, depending on the coordinates that I'm hovering over). Another thing that I want to achieve is that if I'm not over any of the plotted curves, no plot should be displayed over the image.
Is it possible to do this in MATLAB? And if so, how should I do it? I'm new to it so I'm not very skilled.
Any help is really appreciated.
Thanks in advance!
댓글 수: 0
답변 (1개)
Aakash Garg
2021년 3월 30일
You can refer to the following MATLAB answers with similar use cases-
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!