How to set figure/plot visibility to on by default?

In order to hide some plots in a script I used the following command: " figure('Visible','off') "
Now im unable to show plots without using the following line: " figure('Visible','on') " Followed by my plot which creates an empty figure where I'm able to plot in.
I want to be able to plot things casually without setting the Visibility setting on every time I need to plot something.
Im using MATLAB 2014b.

Answers (2)

figure('visible','off')
would create a figure that was not visible and would make it the active figure, but it would have no effect on later figures that you create using figure() without the 'visible' parameter.
If your new figures are created with visible being off, then you must have changed the root property DefaultFigureVisible . Check with
get(0, 'DefaultFigureVisible')
and if necessary
set(0, 'DefaultFigureVisible', 'on')
you can set your preferences using setpref as default settings.

Categories

Find more on Graphics Objects in Help Center and File Exchange

Tags

Asked:

on 16 Jun 2015

Answered:

on 16 Jun 2015

Community Treasure Hunt

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

Start Hunting!