Effacer les filtres
Effacer les filtres

Enabling Data Cursor in App Designer?

22 vues (au cours des 30 derniers jours)
Alexander Bennett
Alexander Bennett le 14 Fév 2017
Modifié(e) : Adam Danz le 4 Mai 2021
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 commentaires
Farley Postgate
Farley Postgate le 21 Avr 2020
Would be very nice, at this point the activeX gui plots are more advanced because of this!
Lucas Acuna Scafati
Lucas Acuna Scafati le 5 Mai 2020
Same here, using App Designer 2017b and looking for a solution. Did any of you guys find a workaround?

Connectez-vous pour commenter.

Réponses (2)

Adam Danz
Adam Danz le 4 Mai 2021
Modifié(e) : Adam Danz le 4 Mai 2021
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 le 27 Juil 2018
datacursormode, ginput, and rect are unsupported in-app designers. Expected to be added in future release.
  3 commentaires
David Giger
David Giger le 4 Mai 2021
I'd love to know that too
Adam Danz
Adam Danz le 4 Mai 2021
@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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by