Limiting UIAxes Interactivity in AppDesigner
49 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (2 件)
Mario Malic
2020 年 9 月 12 日
編集済み: Mario Malic
2020 年 9 月 13 日
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 件のコメント
Mario Malic
2020 年 9 月 13 日
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
2020 年 9 月 18 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interaction Control についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!