I have a script that is generating a lot of different figures. The script currently opens a new figure, plots my data, saves the figure, then closes the figure and repeats. The problem I am having is that MATLAB steals focus every time a new figure window is opened, which makes it hard to work at the computer at the same time as my script is running.
The workaround to this problem that I am using is to create the figures invisible. However, this causes another problem: When the figures are saved, they preserve the 'inivisble' state, which means that when I reopen the figures, they remain invisible.
How can I save a figure with the 'visible' property set to 'on', even if the figure itself is currently invisible, without displaying the figure in the process of the save operation?
Best Answer