Enabling Data Cursor in App Designer?

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 件のコメント

Lutz Thieschäfer
Lutz Thieschäfer 2017 年 5 月 10 日
Same problem here. I wonder if datacursormode is working in App Designer 2017b.
Guilherme Salgado Braga
Guilherme Salgado Braga 2018 年 2 月 12 日
I am also trying to show values through my graphics displayed on UIaxes (app designer)! Is it possible?
Joe Pashley
Joe Pashley 2018 年 3 月 6 日
I am also trying to use datacursormode on App Designer when a switch is toggled. Doesn't seem to be working at the moment, but will try again later and post a solution if it works.
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 日

2 投票

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 日

0 投票

datacursormode, ginput, and rect are unsupported in-app designers. Expected to be added in future release.

3 件のコメント

Lee
Lee 2021 年 1 月 16 日
is there any other alternatives now?
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

質問済み:

2017 年 2 月 14 日

編集済み:

2021 年 5 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by