1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE> 04 June 1998</DATE>
8
<SHORT_DESCRIPTION name="figure"> create a figure</SHORT_DESCRIPTION>
12
<PARAM_NAME>o</PARAM_NAME>
14
<SP>h : integer Handle of the window to create. If not specified, the first free handle is used</SP>
18
<PARAM_NAME>o</PARAM_NAME>
20
<SP>prop{1, 2 ...} : character string name of a property to set</SP>
24
<PARAM_NAME>o</PARAM_NAME>
26
<SP>val{1, 2 ...} : scilab object value to give to the corresponding property</SP>
30
<PARAM_NAME>o</PARAM_NAME>
32
<SP>hn : handle of the newly created window</SP>
39
This routine creates a tksci figure (toplevel window). If a handle is
40
given, the figure corresponding to this handle is created .
41
Otherwise, the window is created with the first free handle, that is
42
the lowest integer not already used by a window. The property named
43
'position' allows to control the geometrical aspect of the control.
44
It is a [ 1,4] real vector x y w h where the letters stand for the x
45
location of the left bottom corner, the y location of the left bottom
46
corner, the width and the height of the uicontrol.
48
One can also set this property by giving a string where the fields are
49
separated by a '|', ie "x|y|w|h".</P>
54
// creates figure number 1.
55
uicontrol( h, 'style','text', ...
56
'string','This is a figure', ...
57
'position',[50 70 100 100], ...
59
// put a text in figure 3
62
uicontrol( 'style','text', ...
63
'string','Another figure', ...
64
'position',[50 70 100 100], ...
66
// put a text in figure 1
68
// close the current graphic window (ie fig. 1)
81
<AUTHOR>Bertrand Guiheneuf</AUTHOR>