Limiting UIAxes Interactivity in AppDesigner
46 次查看(过去 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!