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="axis_properties">
15
<refname>axis_properties</refname>
16
<refpurpose>description of the axis entity
21
<title>Description</title>
22
<para>The Axis entity is a leaf of the graphics entities hierarchy. This
23
entity defines the parameters for axis scaling and appearance.
27
<term>Axis properties</term>
33
<para>This property contains the handle of the parent. The parent of
34
the axis entity should be of the type <literal>"Axes"</literal> or
35
<literal>"Compound"</literal>.
40
<term>visible: </term>
43
This field contains the <literal>visible</literal> property value
44
for the entity . It should be <literal>"on" </literal> or
45
<literal>"off"</literal> . By default, the axis entity is visible, the
46
value's property is <literal>"on"</literal>. If <literal>"off"</literal>, the
47
axis is not drawn on the screen.
52
<term>tics_direction: </term>
54
<para>Specify the direction of the tics drawn under the horizontal
55
axis and the vertical axis. The possible values of this property
61
<literal>"top"</literal>. In this case, tics are drawn at the top
62
of the horizontal axis.
67
<literal>"bottom"</literal>. In this case, tics are drawn at the
68
bottom of the horizantal axis.
73
<literal>"left"</literal>. In this case, tics are going left on
79
<literal>"right"</literal>. In this case, tics are going right on
85
The defaults values are <literal>"top"</literal> for the horizontal
86
axis and <literal>"right"</literal> for vertical axis.
91
<term>xtics_coord: </term>
93
<para>This field represents the x-coordinate of the axis. It is a row
94
vector containing values increasing from left to right which give
95
tics positions for a horizontal axis. Other case, the entity is a
96
vertical axis, this property contain a scale which defines the
102
<term>ytics_coord: </term>
104
<para>This field represents the y-coordinate of the axis. It is a row
105
vector containing values increasing from bottom to top which give
106
tics positions for a vertical axis. Other case, the entity is a
107
horizontal axis, this property contain a scale which defines the
108
y-origin of the axis.
113
<term>tics_color: </term>
115
<para>The value of this properties is index of the color used to
116
draw the axis'lines and tics.
121
<term>tics_segment: </term>
123
<para>This field contains a flag which controls the display of the
124
base segment of the axis. The default is <literal>"on"</literal>, else
125
if to not display it, the property takes <literal>"off"</literal> as
131
<term>tics_style: </term>
133
<para>This property describes how the tics are given. It is a string
134
flag which can have these possible values:
139
<literal>"v"</literal>. It's the default value, In this case,
140
tics positions are given by the row factor
141
<literal>xtics_coord</literal> for horizontal axis
142
(<literal>ytics_coord</literal> for the vertical one).
147
<literal>"r"</literal>. In this case, tics positions are given by
148
the vector <literal>[min,max,n] </literal> where n is the number of
154
<literal>"i"</literal>. In this case the vector given tics
155
positions is of size 4, <literal>[k1,k2,a,n]</literal> then values
156
are increasing between <literal>k1*10^a</literal> and
157
<literal>k2*10^a</literal>, n is the number of intervals.
164
<term>sub_tics: </term>
166
<para>This field sets the number of tics to draw between two main
172
<term>tics_labels: </term>
174
<para>This field is a string matrix, which contains the strings to
175
be drawn along the axis at tics positions.
180
<term>format_n: </term>
182
<para>This property is a character string which specifies the floating-point display format of the tics labels numbers,
183
when relevant. It uses the format syntax of the C language printf function (for example <literal>"%.3f"</literal>).
184
If equal to <literal>""</literal>, a default display format is used.
189
<term>labels_font_color: </term>
191
<para>This property determines the color of the tics labels.</para>
195
<term>labels_font_size: </term>
197
<para>It is a scalar specifying the character size of tics labels.
198
If <literal>fractional_font</literal> property is <literal>"off"</literal>
199
only the integer part of the value is used.
200
For more information see <link linkend="graphics_fonts">graphics_fonts</link>.
205
<term>fractional_font: </term>
208
This property specifies whether ticks labels are displayed using fractional font sizes.
209
Its value must be either <literal>"on"</literal> or <literal>"off"</literal>.
210
If <literal>"on"</literal> the floating point value of <literal>font_size</literal>
211
is used for display and the font is anti-aliased. If <literal>"off"</literal> only the integer part is used
212
and the font is not smoothed.
217
<term>clip_state: </term>
220
This field contains the <literal>clip_state</literal> property value
221
for the arc. Clip_state value should be :
226
<literal>"off"</literal> this means that the axis is not
232
<literal>"clipgrf"</literal> this means that the axis is clipped
233
outside the Axes box.
238
<literal>"on"</literal> this means that the axis is clipped
239
outside the arc given by property clip_box.
246
<term>clip_box: </term>
249
This field is to determinate the <literal>clip_box</literal>
250
property. By Default its value should be an empty matrix if
251
clip_state is "off". Other cases the vector <literal>[x,y,w,h]</literal>
252
(upper-left point width height) defines the portions of the axis
253
to display, however <literal>clip_state</literal> property value will be
259
<term>user_data: </term>
261
<para>This field can be used to store any scilab variable in the axis
262
data structure, and to retrieve it.
272
<title>Examples</title>
273
<programlisting role="example"><![CDATA[
15
<refname>axis_properties</refname>
16
<refpurpose>description of the axis entity
21
<title>Description</title>
22
<para>The Axis entity is a leaf of the graphics entities hierarchy. This
23
entity defines the parameters for axis scaling and appearance.
27
<term>Axis properties</term>
33
<para>This property contains the handle of the parent. The parent of
34
the axis entity should be of the type <literal>"Axes"</literal> or
35
<literal>"Compound"</literal>.
40
<term>visible: </term>
43
This field contains the <literal>visible</literal> property value
44
for the entity . It should be <literal>"on" </literal> or
45
<literal>"off"</literal> . By default, the axis entity is visible, the
46
value's property is <literal>"on"</literal>. If <literal>"off"</literal>, the
47
axis is not drawn on the screen.
52
<term>tics_direction: </term>
54
<para>Specify the direction of the tics drawn under the horizontal
55
axis and the vertical axis. The possible values of this property
61
<literal>"top"</literal>. In this case, tics are drawn at the top
62
of the horizontal axis.
67
<literal>"bottom"</literal>. In this case, tics are drawn at the
68
bottom of the horizantal axis.
73
<literal>"left"</literal>. In this case, tics are going left on
79
<literal>"right"</literal>. In this case, tics are going right on
85
The defaults values are <literal>"top"</literal> for the horizontal
86
axis and <literal>"right"</literal> for vertical axis.
91
<term>xtics_coord: </term>
93
<para>This field represents the x-coordinate of the axis. It is a row
94
vector containing values increasing from left to right which give
95
tics positions for a horizontal axis. Other case, the entity is a
96
vertical axis, this property contain a scale which defines the
102
<term>ytics_coord: </term>
104
<para>This field represents the y-coordinate of the axis. It is a row
105
vector containing values increasing from bottom to top which give
106
tics positions for a vertical axis. Other case, the entity is a
107
horizontal axis, this property contain a scale which defines the
108
y-origin of the axis.
113
<term>tics_color: </term>
115
<para>The value of this properties is index of the color used to
116
draw the axis'lines and tics.
121
<term>tics_segment: </term>
123
<para>This field contains a flag which controls the display of the
124
base segment of the axis. The default is <literal>"on"</literal>, else
125
if to not display it, the property takes <literal>"off"</literal> as
131
<term>tics_style: </term>
133
<para>This property describes how the tics are given. It is a string
134
flag which can have these possible values:
139
<literal>"v"</literal>. It's the default value, In this case,
140
tics positions are given by the row factor
141
<literal>xtics_coord</literal> for horizontal axis
142
(<literal>ytics_coord</literal> for the vertical one).
147
<literal>"r"</literal>. In this case, tics positions are given by
148
the vector <literal>[min,max,n] </literal> where n is the number of
154
<literal>"i"</literal>. In this case the vector given tics
155
positions is of size 4, <literal>[k1,k2,a,n]</literal> then values
156
are increasing between <literal>k1*10^a</literal> and
157
<literal>k2*10^a</literal>, n is the number of intervals.
164
<term>sub_tics: </term>
166
<para>This field sets the number of tics to draw between two main
172
<term>tics_labels: </term>
174
<para>This field is a string matrix, which contains the strings to
175
be drawn along the axis at tics positions.
180
<term>format_n: </term>
182
<para>This property is a character string which specifies the floating-point display format of the tics labels numbers,
183
when relevant. It uses the format syntax of the C language printf function (for example <literal>"%.3f"</literal>).
184
If equal to <literal>""</literal>, a default display format is used.
189
<term>labels_font_color: </term>
191
<para>This property determines the color of the tics labels.</para>
195
<term>labels_font_size: </term>
197
<para>It is a scalar specifying the character size of tics labels.
198
If <literal>fractional_font</literal> property is <literal>"off"</literal>
199
only the integer part of the value is used.
200
For more information see <link linkend="graphics_fonts">graphics_fonts</link>.
205
<term>fractional_font: </term>
208
This property specifies whether ticks labels are displayed using fractional font sizes.
209
Its value must be either <literal>"on"</literal> or <literal>"off"</literal>.
210
If <literal>"on"</literal> the floating point value of <literal>font_size</literal>
211
is used for display and the font is anti-aliased. If <literal>"off"</literal> only the integer part is used
212
and the font is not smoothed.
217
<term>clip_state: </term>
220
This field contains the <literal>clip_state</literal> property value
221
for the arc. Clip_state value should be :
226
<literal>"off"</literal> this means that the axis is not
232
<literal>"clipgrf"</literal> this means that the axis is clipped
233
outside the Axes box.
238
<literal>"on"</literal> this means that the axis is clipped
239
outside the arc given by property clip_box.
246
<term>clip_box: </term>
249
This field is to determinate the <literal>clip_box</literal>
250
property. By Default its value should be an empty matrix if
251
clip_state is "off". Other cases the vector <literal>[x,y,w,h]</literal>
252
(upper-left point width height) defines the portions of the axis
253
to display, however <literal>clip_state</literal> property value will be
259
<term>user_data: </term>
261
<para>This field can be used to store any scilab variable in the axis
262
data structure, and to retrieve it.
272
<title>Examples</title>
273
<programlisting role="example"><![CDATA[
274
274
a=get("current_axes");//get the handle of the newly created axes
275
275
a.data_bounds=[-1,-1;10,10];