legend_properties

legend_properties — description of the Legend entity properties

Description

The Legend entity is a leaf of the graphics entities hierarchy. This entity defines the parameters for legends drawn below plot2dx graphs. For each line plotted, the legend shows a sample of the line type, marker symbol, and color.

visible: This field contains the visible property value for the entity . It should be "on" or "off" . If "on" the legend is drawn , If "off" the legend is not displayed on the screen.
foreground: This field contains the color index used to draw legend. Its value should be a color index (relative to the current colormap)
text: This field is the character string vector which contains the legend.
parent: This property contains the handle of the parent. The parent of the legend entity should be of the type "Agregation". This agregation entity contains also the remainder of the graph's entities.

Examples


   

  set("figure_style","new") //create a figure
   plot2d();
   a=get("current_axes");
   l=a.children.children(1)
   l.text="sin(x)@sin(2*x)@sin(3*x)";
   l.visible="off";
    

 
  

See also

plot2d, graphics_entities

Author

Djalel ABDEMOUCHE