필터 지우기
필터 지우기

Fetch Data Cursor on figure update

조회 수: 1 (최근 30일)
Daniell Algar
Daniell Algar 2013년 2월 4일
Hi.
I've re-directed the Data Cursor callback to my own function. In there I like to re-draw a figure given new x,y-values (collected from the cursor). This works well when clicking the mouse on the plot, but not when moving the pressed mouse over the plot, to make it continuos. This is because the new plot replaces the old on (set(h, 'NextPlot', 'replace')), which feels natural.
So, any suggestions on how to make the cursor understand that it should update/fetch the x,y,z-values upon plot re-draw, from the new figure?
Thanks.
  댓글 수: 1
Daniell Algar
Daniell Algar 2013년 2월 4일
I can add that I use the replace/replacechildren to get rid of the old data. Neither delete, cla, clf, does the job.. I always get "error: deleted handle" or new figure windows pop up (even though I'm never telling it to), etc.... So a pure re-plot is what I seem to want.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by