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

 Respuesta aceptada

Thi Ng
Thi Ng el 22 de Abr. de 2020

2 votos

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 comentarios

Gonçalo Torres
Gonçalo Torres el 27 de Abr. de 2020
The problem was a "hold on" that I forgot to remove.
Thanks for the answer
Same for me. Just check for
hold on

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Mzo. de 2020

Comentada:

el 23 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by