Cursors in uiaxes that is able to move horisontally along the x-axis according to mouseclicks by the user?

조회 수: 1 (최근 30일)
Hi,
Is there any possibility to define a vertical line in uiaxes that is able to move horisontally along the x-axis according to mouseclicks by the user in an app?
I have a uiaxes plot in my app with time on the x-axis and I would like to have two cursors that enables the user to 'detect' the time difference between any points of interest...
Hoping for help.
  댓글 수: 1
Adam Danz
Adam Danz 2021년 1월 26일
How does the mouse click control the position of the vertical line?
What does the vertical line have to do with time differences between points?

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

답변 (1개)

Vimal Rathod
Vimal Rathod 2021년 1월 28일
Hi,
One way to make sure the two cursors move horizontally is to replot the two cursors with different locations by changing the XData and YData Properties of the line.
Refer to the following link to know more about the line plots.

카테고리

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