<< view Matlab-like plotting library

Matlab-like plotting library >> Matlab-like plotting library > whitebg

whitebg

Set the default color scheme

Calling Sequence

whitebg(c)

Parameters

c

3 component vector

Description

whitebg(c) where c=[r g b] is a vector giving the red,green and blue intensity sets the default background of subsequent figures to color c. Other colors, such as the figure background, the foreground and background axes colors, the 2D colormap (for color cycling in 2D plots) are set to adequate values.

whitebg() sets the default background to white=[1 1 1].

Examples

whitebg([0 0 .5]);
figure();
t=linspace(0,2*%pi,128);
plot(t,[sin(t);cos(t)]);
legend 'sin(t)' 'cos(t)';

Screenshot

See Also

Authors


Report an issue
<< view Matlab-like plotting library