Will uifigure allow plot toolbar in a future release?
3 次查看(过去 30 天)
显示 更早的评论
Currently a uifigure does not support a traditional figure toolbar:
>> h = uifigure;
>> h.ToolBar = 'figure'
Functionality not supported with figures created with the uifigure
function. For more information, see Graphics Support in App
Designer.
The Matlab figure toolbar is so useful, with data tips, data brushing, zoom/pan, etc., if I cannot use it in a uifigure, it is a non-starter.
I made a simple app with AppDesigner, and I like the interface, but the limitations of uifigure may lead me to not invest any more time into it until they improve functionality.
Is there a future solution for the toolbar issue?
0 个评论
回答(2 个)
Ahmet Cecen
2018-4-8
While this is something only an insider will know at this point, I will point out as a workaround that you can still "pop" a figure as usual in an app to have access to those features. Just do f1 = figure; within the callback of a button. You can set that window's size and location for a very streamlined setup.
1 个评论
HNguyen
2019-6-7
Based on Ahmet's suggestion, this is a perfect work around for me. Inside my AppDesigner code, I created a new f1=figure, and I got all features that I needed (toolbar, rotation3, Data Cursor, etc.). The only draw back is it created a new "pop-out" figure window, but I can live with that.
This is how I did it.
f1 = figure; % This line creates a separate Figure Window to have toolbar, data cursor, etc.
%ax = app.UIAxes(); % This line is for accessing the app.UIAxes inside AppDesigner Window
ax = axes(f1);
cla(ax,'reset'); % Clear any existing data and RESET the axes and rotations
ax.YDir = 'reverse';
title(ax, {['Round ' roundId]});
...
Walter Roberson
2018-4-8
No, I think it fairly safe to say that uifigure will never support the traditional toolbar. Some or all of the functionality might be added, but in a different way.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!