Reputation: 2564
How can I plot Matlab figures in the background by default? I know that I can switch the visibility of individual figures as follows:
set(gcf, 'visible', 'off')
buy I'm looking for a way to set it as the default behaviour in the beginning of my script, just as I set the default line width with:
set(0,'defaultlinelinewidth', 1.5);
Upvotes: 2
Views: 1499
Reputation: 2868
set(0,'DefaultFigureVisible','off')
See MathWorks documentation to use this default mechanism on any parameter.
Upvotes: 4