Delay the Creation of Figure Windows?

4 views (last 30 days)
Hello,
I'm running a simulation after which about 15 plots are created using a separate script dedicated to generating plots. Most of these plots contain a few subplots each with multiple lines and most are plotted using the plot3 function.
It is a little annoying to see each figure window popup as its running through the plotting script. Is there a way to delay the actual creation of the figure windows until the very end?
Thanks!

Accepted Answer

Image Analyst
Image Analyst on 21 Jul 2015
Set the 'visible' property of the figures to false as soon as you create them. See if that keeps them from popping up. Then set them all to true when you're ready
set(gcf, 'Visible', 'False');
drawnow;
  2 Comments
John R.
John R. on 21 Jul 2015
Good approach. Although once I set them all to visible they still popup one at a time; although they popup slightly faster than before. Perhaps there is no way for all of the figure windows to popup at once? Could be a operating system limitation.
Image Analyst
Image Analyst on 21 Jul 2015
If you can fit them all on the screen at once, you can put the axes in a panel that's invisible. Then make the panel visible and they should all appear at the same instant.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!