13
13
<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" version="5.0-subset Scilab" xml:lang="en" xml:id="fec_properties">
15
<refname>fec_properties</refname>
16
<refpurpose>description of the fec entities
21
<title>Description</title>
22
<para>The Fec entity is a leaf of the graphics entities hierarchy. It
23
represents 2D finite elements plots (see <literal>fec</literal>,
24
<literal>Sgrayplot</literal>).
30
<para>This property contains the handle of the parent. The parent of the
31
fec entity should be of the type <literal>"Axes"</literal> or
32
<literal>"Compound"</literal>.
37
<term>children: </term>
40
This property contains a vector with the <literal>children</literal> of
41
the handle. However, <literal>Fec</literal> handles currently do not have
42
any <literal>children</literal>.
47
<term>visible: </term>
50
This field contains the <literal>visible</literal> property value for
51
the entity . It should be <literal>"on" </literal> or <literal>"off"</literal> .
52
By default, the plot is visible, the value's property is
53
<literal>"on"</literal>. If <literal>"off"</literal> the plot is not drawn on the
62
This is a three column matrix <literal>[x,y,f]</literal>, where
63
<literal>x(i)</literal> and <literal>y(i)</literal> are the coordinates of the
64
<literal>i</literal>'th node. <literal>f(i)</literal> is the value associated to
65
the node <literal>i</literal>.
70
<term>triangles: </term>
73
This is a five column matrix <literal>[tn,n1,n2,n3,flag]</literal>.
74
<literal>tn(j)</literal> is the triangle number. <literal>n1(j)</literal>,
75
<literal>n2(j)</literal> and <literal>n3(j)</literal> are the index of the nodes
76
which constitute the triangle. (<literal>flag(j)</literal> is not
82
<term>z_bounds: </term>
85
This vector of size 2, <literal>[zmin,zmax]</literal>, gives the z values associated
86
with the first and the last color (of the current colormap). More
87
exactly if the colormap have <literal>nc</literal> colors and if we note <literal>dz
90
,then the part of the triangulation where
91
<literal>zmin + (i-1)dz <= z < zmin + i dz</literal> is filled with the
92
color <literal>i</literal>). By default the <literal>z_bounds</literal> property value
93
is <literal>[0,0]</literal>. In this case, the <literal>zmin</literal> and <literal>zmax</literal> are
94
autommatically set to the minumum and maximum of the <literal>func</literal> argument.
99
<term>outside_color: </term>
102
This vector of size 2, <literal>[cmin, cmax]</literal>, defines the color used
103
when nodes values are outside the <literal>z_bounds = [zmin,zmax]</literal> interval.
104
When node values are lower than <literal>zmin</literal> the color with index <literal>cmin</literal>
105
is used. When node values are greater than <literal>zmax</literal> the color with index <literal>cmax</literal>
106
is used. By default, the <literal>outside_color</literal> property value is <literal>[0,0]</literal>.
107
In this case, <literal>cmin</literal> and <literal>cmax</literal> are automatically set to the two bounds of the colormap.
108
If <literal>cmin</literal> or <literal>cmax</literal> are negative, then values outside z_bounds interval are
109
not displayed, they appear transparent.
114
<term>color_range: </term>
117
This vector of size 2, <literal>[rmin, rmax]</literal>, allows to use only a part of the
118
colormap for display. <literal>rmin</literal> and <literal>rmax</literal> stand for
119
colormap indices. If they are both greater than 1, then the actual colormap used to
120
display the fec entity is <literal>colormap(rmin:rmax)</literal> where <literal>colormap</literal>
121
is the colormap of the parent figure. By default, the <literal>color_range</literal> property value is <literal>[0,0]</literal>.
122
In this case, the whole colormap is used.
127
<term>line_mode:</term>
130
If <literal>"on"</literal>, the wireframe enclosing triangles is drawn.
131
If <literal>"off"</literal>, only the inside of triangles are drawn.
136
<term>foreground:</term>
138
<para>This color index specifies the color of the mesh.
139
If <literal>line_mode</literal> property is <literal>"on"</literal>,
140
the wireframe is drawn using this color.
145
<term>clip_state: </term>
148
This field contains the <literal>clip_state</literal> property value for
149
the fec. It should be :
154
<literal>"off"</literal> this means that the fec is not
160
<literal>"clipgrf"</literal> this means that the fec is clipped
161
outside the Axes box.
166
<literal>"on"</literal> this means that the fec is clipped
167
outside the rectangle given by property clip_box.
174
<term>clip_box: </term>
177
This field is to determinate the <literal>clip_box</literal> property.
178
By Default its value should be an empty matrix if clip_state is "off".
179
Other cases the vector <literal>[x,y,w,h]</literal> (upper-left point width
180
height) defines the portions of the fec to display, however
181
<literal>clip_state</literal> property value will be changed.
186
<term>user_data: </term>
188
<para>This field can be use to store any scilab variable in the fec data
189
structure, and to retreive it.
196
<title>Examples</title>
197
<programlisting role="example"><![CDATA[
15
<refname>fec_properties</refname>
16
<refpurpose>description of the fec entities
21
<title>Description</title>
22
<para>The Fec entity is a leaf of the graphics entities hierarchy. It
23
represents 2D finite elements plots (see <literal>fec</literal>,
24
<literal>Sgrayplot</literal>).
30
<para>This property contains the handle of the parent. The parent of the
31
fec entity should be of the type <literal>"Axes"</literal> or
32
<literal>"Compound"</literal>.
37
<term>children: </term>
40
This property contains a vector with the <literal>children</literal> of
41
the handle. However, <literal>Fec</literal> handles currently do not have
42
any <literal>children</literal>.
47
<term>visible: </term>
50
This field contains the <literal>visible</literal> property value for
51
the entity . It should be <literal>"on" </literal> or <literal>"off"</literal> .
52
By default, the plot is visible, the value's property is
53
<literal>"on"</literal>. If <literal>"off"</literal> the plot is not drawn on the
62
This is a three column matrix <literal>[x,y,f]</literal>, where
63
<literal>x(i)</literal> and <literal>y(i)</literal> are the coordinates of the
64
<literal>i</literal>'th node. <literal>f(i)</literal> is the value associated to
65
the node <literal>i</literal>.
70
<term>triangles: </term>
73
This is a five column matrix <literal>[tn,n1,n2,n3,flag]</literal>.
74
<literal>tn(j)</literal> is the triangle number. <literal>n1(j)</literal>,
75
<literal>n2(j)</literal> and <literal>n3(j)</literal> are the index of the nodes
76
which constitute the triangle. (<literal>flag(j)</literal> is not
82
<term>z_bounds: </term>
85
This vector of size 2, <literal>[zmin,zmax]</literal>, gives the z values associated
86
with the first and the last color (of the current colormap). More
87
exactly if the colormap have <literal>nc</literal> colors and if we note <literal>dz
90
,then the part of the triangulation where
91
<literal>zmin + (i-1)dz <= z < zmin + i dz</literal> is filled with the
92
color <literal>i</literal>). By default the <literal>z_bounds</literal> property value
93
is <literal>[0,0]</literal>. In this case, the <literal>zmin</literal> and <literal>zmax</literal> are
94
autommatically set to the minumum and maximum of the <literal>func</literal> argument.
99
<term>outside_color: </term>
102
This vector of size 2, <literal>[cmin, cmax]</literal>, defines the color used
103
when nodes values are outside the <literal>z_bounds = [zmin,zmax]</literal> interval.
104
When node values are lower than <literal>zmin</literal> the color with index <literal>cmin</literal>
105
is used. When node values are greater than <literal>zmax</literal> the color with index <literal>cmax</literal>
106
is used. By default, the <literal>outside_color</literal> property value is <literal>[0,0]</literal>.
107
In this case, <literal>cmin</literal> and <literal>cmax</literal> are automatically set to the two bounds of the colormap.
108
If <literal>cmin</literal> or <literal>cmax</literal> are negative, then values outside z_bounds interval are
109
not displayed, they appear transparent.
114
<term>color_range: </term>
117
This vector of size 2, <literal>[rmin, rmax]</literal>, allows to use only a part of the
118
colormap for display. <literal>rmin</literal> and <literal>rmax</literal> stand for
119
colormap indices. If they are both greater than 1, then the actual colormap used to
120
display the fec entity is <literal>colormap(rmin:rmax)</literal> where <literal>colormap</literal>
121
is the colormap of the parent figure. By default, the <literal>color_range</literal> property value is <literal>[0,0]</literal>.
122
In this case, the whole colormap is used.
127
<term>line_mode:</term>
130
If <literal>"on"</literal>, the wireframe enclosing triangles is drawn.
131
If <literal>"off"</literal>, only the inside of triangles are drawn.
136
<term>foreground:</term>
138
<para>This color index specifies the color of the mesh.
139
If <literal>line_mode</literal> property is <literal>"on"</literal>,
140
the wireframe is drawn using this color.
145
<term>clip_state: </term>
148
This field contains the <literal>clip_state</literal> property value for
149
the fec. It should be :
154
<literal>"off"</literal> this means that the fec is not
160
<literal>"clipgrf"</literal> this means that the fec is clipped
161
outside the Axes box.
166
<literal>"on"</literal> this means that the fec is clipped
167
outside the rectangle given by property clip_box.
174
<term>clip_box: </term>
177
This field is to determinate the <literal>clip_box</literal> property.
178
By Default its value should be an empty matrix if clip_state is "off".
179
Other cases the vector <literal>[x,y,w,h]</literal> (upper-left point width
180
height) defines the portions of the fec to display, however
181
<literal>clip_state</literal> property value will be changed.
186
<term>user_data: </term>
188
<para>This field can be use to store any scilab variable in the fec data
189
structure, and to retreive it.
196
<title>Examples</title>
197
<programlisting role="example"><![CDATA[
198
198
x=-10:10; y=-10:10;m =rand(21,21);
199
199
Sgrayplot(x,y,m);
200
200
a=get("current_axes");