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!