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.

回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 6 月 16 日

1 投票

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')
KL
KL 2015 年 6 月 16 日

0 投票

you can set your preferences using setpref as default settings.

カテゴリ

ヘルプ センター および File ExchangeGraphics Object Properties についてさらに検索

タグ

質問済み:

2015 年 6 月 16 日

回答済み:

2015 年 6 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by