title_properties

title_properties — description of the Title entity properties

Description

The Title entity is a leaf of the graphics entities hierarchy. It is associated to the axes graphics object. This entity defines the parameters for string drawing

visible: This field contains the visible property value for the entity . It should be "on" or "off" .By default, the title is visible, the value's property is "on" . If "off" the title is not to display on the screen.
text: This field is the character string vector which contains the title.
font_size: The font_size property is used to select the type of size of the title. Its value should be an integer in between 0 and 5 whith 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 title. 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 title entity should be of the type "Axes" or "Agregation".

Examples


   

   set("figure_style","new") //create a figure
   a=get("current_axes"); 
   a.data_bounds=[-2,-4,2,4];
   a.axes_visible="on"; 
   a.box="off"; 

   xtitle(['Titre';'Principal'],'x','y');
   t=a.children.children;
   t.text
   t.font_size=4;
   T=t(3)
   T.text="A title entity"  
   T.font_style=5;
   a.x_location="middle"; 
   a.y_location="right";
  

 
  

See also

set, get, delete, xstring, graphics_entities

Author

Djalel ABDEMOUCHE