フィルターのクリア

App designer - prevent axes figure from popping up

7 ビュー (過去 30 日間)
SBakc
SBakc 2019 年 9 月 20 日
コメント済み: Sarlota Duskova 2020 年 5 月 10 日
I am trying to create an app using the App Designer. When I place an Axes on my GUI, at run-time the Axes is displayed as a figure.
I do not want this to occur. The Axes should not pop-up as a figure at run-time, nor should it be visible until a button is pressed.
How can I prevent the Axes from displaying in a figure at run-time? I am not calling any functions, so I'm not sure why this is occurring.
Thank you.
  5 件のコメント
Ned
Ned 2019 年 9 月 20 日
what kind of error?
Sarlota Duskova
Sarlota Duskova 2020 年 5 月 10 日
Hello, I think I have same problem. I have placed axes in the Design View of the App Designer and when I want to plot data from one file it works fine but when I want to plot data from two file in loop it shows graph and also it pops up empty graph in new figure. This is my code.
T = getappdata(0, 'table')
nFiles = getappdata(0,'figure');
if(nFiles>0)
hold on;
for ii=1:nFiles
table = vertcat(T{ii})
plot(app.UIAxes,table.Var1,table.Var2);
end
else
plot(app.UIAxes,T.Var1,T.Var2);
end

サインインしてコメントする。

回答 (1 件)

Ned
Ned 2019 年 9 月 20 日
Uncheck the Visible property of the Axes in the Component Browser.
To make it pop back up, use
app.UIAxes.Visible = true;
in your button callback.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by