Change Axes background color
Syntax
whitebg
whitebg(h)
whitebg(ColorSpec
)
whitebg(h,ColorSpec
)
Description
whitebg
complements the colors in the current Figure.
whitebg(h)
complements colors in all Figures specified in the vector h
.
whitebg(ColorSpec
) and whitebg(h,ColorSpec
)
change the color of the Axes, which are children of the Figure, to the color specified by ColorSpec
.
Remarks
whitebg
changes the colors of the Figure's children, with the exception of shaded surfaces. This ensures that all objects are visible against the new background color. whitebg
sets the default properties on the Root such that all subsequent Figure use the new background color.
Examples
Set the background color to blue-gray:
whitebg([0 .5 .6])
Set the background color to blue:
whitebg('blue')
See Also
ColorSpec
The Figure graphics object property InvertHardCopy
.
[ Previous | Help Desk | Next ]