App designer opening new figure
16 次查看(过去 30 天)
显示 更早的评论
Hi all.
I am currently developing a GUI with App Designer
I want to plot some data in an exsiting axes of my app. I am using the following code for that:
if app.Settings.Odds.PlotVal
app.GUI.Market {iM} .pVal = plot (app.GUI.Market {iM} .Axes, newTime, Val (1,1));
backName = 'Back' ;
end
The data are plotted in the axes I want, but at the same time, a new blank figure pops-up, and I have to close it everytime.
Am I doing anything wrong?
Thanks
Gonçalo
0 个评论
采纳的回答
Thi Ng
2020-4-22
Hi Gonçalo,
Check the rest of your script if it contains any label, legend, title, etc. info, which you forgot to delete. Any of those will trigger an empty plot to open.
Best,
Thi
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!