How can I keep my GUI invisible while plotting?

Illustration
techsmith - 2020-09-02T11:50:37+00:00
Question: How can I keep my GUI invisible while plotting?

In my GUI, I run 2 plots on separate axes in OpeningFcn. When The GUI becomes visible, one has been plotted (the first one in the code) but the other axes are blank momentarily while it waits for the plot to finish. This looks very sloppy - how can I make the GUI wait until both plots are finished before it becomes visible?

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

In the opening function

set(handles.figure1,'visible','off');

Then when you're done with all of that plotting stuff:

 

set(handles.figure1,'visible','on');,/pre>

Note: figure1 is the default GUIDE tag; you will have to use whatever tag you defined the figure by.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!