App designer opening new figure

조회 수: 16 (최근 30일)
Gonçalo Torres
Gonçalo Torres 2020년 3월 30일
댓글: Jonas Bauer 2020년 10월 23일
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

채택된 답변

Thi Ng
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
Gonçalo Torres
Gonçalo Torres 2020년 4월 27일
The problem was a "hold on" that I forgot to remove.
Thanks for the answer
Jonas Bauer
Jonas Bauer 2020년 10월 23일
Same for me. Just check for
hold on

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by