Scilab Data type
Last update : 2002
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.
-
line_mode: This field contains the default line_mode property
value for the segs. Its value should be "on" (line drawn)
or "off" (no line drawn).
-
mark_mode: This field contains the default mark_mode property
value for the polyline. Its value should be "on" (marks
drawn) or "off" (no marks drawn).
-
mark_foreground: This field contains the mark_foreground property
value which is the marks' edge color. Its value should be a color
index (relative to the current color_map).
-
mark_background: This field contains the mark_background property
value which is the marks' face color. Its value should be a color
index (relative to the current color_map).
-
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