App designer opening new figure

16 visualizzazioni (ultimi 30 giorni)
Gonçalo Torres
Gonçalo Torres il 30 Mar 2020
Commentato: Jonas Bauer il 23 Ott 2020
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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by