Man Scilab

label_properties
Scilab Data type

label_properties - description of the Label entity properties

Description

The Label entity is a leaf of the graphics entities hierarchy. This entity defines the parameters for label drawing

visible: This field contains the visible property value for the entity . It should be "on" or "off" .By default, the label is visible, the value's property is "on" . If "off" the label is not displayed on the screen.
text: This field is the character string vector which contains the label.
font_size: The font_size property is used to select the type of size of the label. Its value should be an integer in between 0 and 5 which stands for 8pt, 10pt, 12pt, 14pt, 18pt and 24pt.
font_style: Seven differents fonts are available : "Courrier", "Symbol", "Times", "Times Italic", "Times Bold", "User defined". The font_size property is an index in [0 6] which is associated to the previous font names.
foreground: This field contains the color used to display the label. Its value should be a color index (relative to the current colormap).
parent: This property contains the handle of the parent. The parent of the label entity should be of type "Axes" .

Note that, for now, Label entity is exclusively used in title , x_label , y_label and z_label building.

Examples

   

   set("figure_style","new") //create a figure
   a=get("current_axes");
   a.title
   type(a.title)
   plot3d()
   a.x_label
   a.y_label
   a.z_label
   xtitle("My title","my x axis label", "Volume") 
   a.z_label.text="Month"

   t=a.title;
   t.foreground=9;
   t.font_size=5;
   t.font_style=5;
   t.text="SCILAB";
   
   xlabel=a.x_label;
   xlabel.text=" Weight"
   xlabel.font_style= 5;
   a.y_label.foreground = 12;
 

See Also

set ,   get ,   delete ,   xtitle ,   graphics_entities ,   axes_properties ,   text_properties ,  

Author

Djalel ABDEMOUCHE

Back