Name

fig — creates/activates a window

Calling Sequence

h = fig(varargin)

Parameters

varargin

See examples below for the input arguments

h

figure handle

Description

fig() : creates a new window with default attributes. Property/value pairs allow to change the default colors, e.g.

fig('color',[1 1 1],'background',[1 1 1],'foreground',[0 0 0]);

allows a color scheme similar to the default scilab scheme : the 'color' property defines the color of the figure, and the 'background' and 'foreground' properties define the default inherited values for children axes.

Examples

fig('colormap','hot');
fig('colormap',[0 0 0;1 1 1]);
fig(winNum); // activates the window winNum 
fig(winNum, 'background',[0 0 1],'foreground',[1 1 0]);
fig(winNum, 'margin', m); // changes the margin of the plot box, m has to be betwen 0 and 0.5. 

See Also

clf , colormap

Authors

Stéphane Mottelet