Limiting UIAxes Interactivity in AppDesigner
28 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi!
I'm using three UIAxes to display plots, and I'd like to be able to limit their interactivity such that the zoom in/out, and save/export buttons neither appear nor work. Are there commands to enable/disable these in AppDesigner?
Thanks in advance for your suggestions!
0 commentaires
Réponse acceptée
Plus de réponses (2)
Mario Malic
le 12 Sep 2020
Modifié(e) : Mario Malic
le 13 Sep 2020
I am not aware of the option to save/export fig in App Designer.
For limiting interactivity:
ax = app.UIAxes; % change to your UIAxes handle
ax.Interactions = [panInteraction];
ax.Toolbar.Visible = 'off';
7 commentaires
Mario Malic
le 13 Sep 2020
I sourced my information from UIAxes properties which also mentioned disableDefaultInteractivity, but didn't checked it.
"I enjoy and learn from other people's approaches such as this one." - Likewise!
Bruno Gonfiotti
le 18 Sep 2020
I tested the solutions here proposed, but in Matlab 2020b I get the following error: Invalid or deleted object. Error in disableDefaultInteractivity (line 12). ax.InteractionContainer.Enabled = 'off';
Do you have any suggestion?
8 commentaires
Voir également
Catégories
En savoir plus sur Interaction Control 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!