필터 지우기
필터 지우기

Is there a function that shows the value of the points on a plot as your mouse runs over them?

조회 수: 16 (최근 30일)
Hi,
I was wondering if anyone knew of a function, possibly in File Exchange, that would display the x and y coordinates of a plot as you hover your mouse over it. Or maybe there are crosshairs that follow along the line of a plot while displaying the values of the coordinates?
Thank you for the help
  댓글 수: 2
Patrick Lydon
Patrick Lydon 2017년 6월 30일
I found this function https://www.mathworks.com/matlabcentral/fileexchange/1038-plot-crosshairs to plot crosshairs on the graph but if anyone has any other advice or any other ideas, please let me know
Adam
Adam 2017년 6월 30일
I'm not aware of any builtin functionality, I've always programmed my own behaviour in that line. I tend to forget to look in File Exchange, but I usually prefer my own code anyway.

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

채택된 답변

Fangjun Jiang
Fangjun Jiang 2017년 6월 30일
What about the build-in "Data Cursor"? Make a plot, go to "Tools", turn on "Data Cursor". Or, click the "Data Cursor" icon on the Figure Toolbar.
You will need to click the data point, instead of hover over it.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by