필터 지우기
필터 지우기

Enabling Data Cursor in App Designer?

조회 수: 22 (최근 30일)
Alexander Bennett
Alexander Bennett 2017년 2월 14일
편집: Adam Danz 2021년 5월 4일
How can I enable the data cursor for all plots in a UIFigure made in the new App Designer?
I have tried datacursormode(app.UIFigure1) but get the error message:
Undefined function 'getAxisComponent' for input arguments of type 'handle.handle'.
  댓글 수: 5
Farley Postgate
Farley Postgate 2020년 4월 21일
Would be very nice, at this point the activeX gui plots are more advanced because of this!
Lucas Acuna Scafati
Lucas Acuna Scafati 2020년 5월 5일
Same here, using App Designer 2017b and looking for a solution. Did any of you guys find a workaround?

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

답변 (2개)

Adam Danz
Adam Danz 2021년 5월 4일
편집: Adam Danz 2021년 5월 4일
datacursormode is supported in uifigures (e.g. app designer) starting from R2020a I believe (tested in R2021a).
For example, place this in your app's startup function,
datacursormode(app.UIFigure, 'on')
ginput is also supported in uifigures (e.g. app designer) starting in R2020b, I believe. However, since ginput still does not have an input option for an axes handle, you have to follow steps outlined in this answer so that ginput acts on the correct axes.

Raghu S
Raghu S 2018년 7월 27일
datacursormode, ginput, and rect are unsupported in-app designers. Expected to be added in future release.
  댓글 수: 3
David Giger
David Giger 2021년 5월 4일
I'd love to know that too
Adam Danz
Adam Danz 2021년 5월 4일
@Lee & @David Giger I noticed your comments were made in 2021 so I've updated this thread with a new answer that addresses your comments.

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

카테고리

Help CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by