Why are the default values and factory values for figure color not consistent in MATLAB 7.6 (R2008a)?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 6 Dec 2013
The 'factory' value for figure color and axes color is black [0 0 0], obtained from the following command:
get(0,'FactoryFigureColor')
However, the default value for figure color is grey ([0.8 0.8 0.8]):
get(0,'DefaultFigureColor')
When I change default values and would like to change back to the original default values I would use:
set(0,'DefaultFigureColor','factory')
to change it back to the factory settings. However then the figures will be black.
Accepted Answer
MathWorks Support Team
on 18 Oct 2013
This is expected behaviour in MATLAB 7.6 (R2008a) and prior versions.
The factory settings for figure and axes color are black since in MATLAB 4 those were also the default values. The default values were changed in MATLAB 5, however the factory settings stayed the same.
To workaround this issue change the default value directly:
set(0,'DefaultFigureColor',[0.8 0.8 0.8])
0 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Object Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!