Turning the visability of the lines of a plot to 'off' if app.UIAxis.Visible = 'off' doesnt hide them.
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hawki005
le 2 Avr 2019
Commenté : Walter Roberson
le 5 Avr 2019
I have an output plot that is created in a startup function in app designer that when a button is pressed I would like to hide.
I have used app.UIAxis.Visible = 'off' and this removes the axis, grid lines etc but not the actual line of the plot.
Is there a way to hide a plotted line on the callback of a pushed button on the same app designer canvas?
Thanks in advance
(Using R2019a)
0 commentaires
Réponse acceptée
Walter Roberson
le 2 Avr 2019
set( findobj(app.UIAxis.Children, '-type', 'line'), 'Visible', 'off')
2 commentaires
Walter Roberson
le 5 Avr 2019
Good point. findobj() uses a mix of keywords, some of which have leading hyphen and some of which do not.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer 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!