1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="figure">
4 <refname>figure</refname>
5 <refpurpose>create a figure</refpurpose>
8 <title>Calling Sequence</title>
11 f = figure("PropertyName1", Propertyvalue1, ..., ..., "PropertyNameN", PropertyvalueN);
15 <title>Description</title>
17 This routine creates a figure. If an ID is given, the figure corresponding to this ID is created.
18 Otherwise, the window is created with the first free ID, that is the lowest integer not already used by a window.
22 <title>Arguments</title>
27 <para>ID of the window to create. If not specified, the first free ID is used.</para>
31 <term>PropertyName{1, ..., N}</term>
33 <para>character string name of a property to set. One of the property names listed below.</para>
37 <term>PropertyValue{1, ..., N}</term>
39 <para>scilab object value to give to the corresponding property.</para>
45 <para>handle of the newly created window.</para>
51 <title>Properties</title>
54 <term>BackgroundColor</term>
56 <para>[1,3] real vector or string Background color of the figure. A
57 color is specified as Red, Green and Blue values. Those values are
58 real in [0,1]. The color can be given as a real vector, ie [R,G,B] or
59 a string where each value is separated by a "|", ie "R|G|B"
64 <term>Figure_name</term>
66 <para>character string, allows to set the title of the figure.
73 <para>allows to control the geometrical aspect of the figure.
74 It is a [1,4] real vector [x y width height] where the letters stand for the x
75 location of the top left corner, the y location of the top left corner, the width and the height of the virtual graphics window
76 (the part of the figure which contains uicontrols and graphics).
77 See the <emphasis role="bold">axes_size</emphasis> property description in <link linkend="figure_properties">figure properties</link> help page.
78 One can also set this property by giving a string where the fields are separated by a "|", ie "x|y|width|height".
85 <para>string this property is generally used to identify the figure. It
86 allows to give it a "name". Mainly used in conjontion with findobj().
93 <para>this can be used to associate some Scilab objects to a fugure.</para>
99 <title>Examples</title>
100 <programlisting role="example"><![CDATA[
101 // Create figure having figure_id==3
103 // Add a text uicontrol in figure 3
104 uicontrol(h, "style", "text", ...
105 "string", "This is a figure", ...
106 "position", [50 70 100 100], ...
109 // Create figure having figure_id==1
111 // Add a text uicontrol in figure 1
112 uicontrol("style", "text", ...
113 "string", "Another figure", ...
114 "position", [50 70 100 100], ...
117 // Close current figure (ie figure 1)
123 <refsection role="see also">
124 <title>See Also</title>
125 <simplelist type="inline">
127 <link linkend="close">close</link>
130 <link linkend="gcf">gcf</link>