AGGraphLegend / AGGraphLegendObj


Synopsis

define a legend for one or more AGGraph objects


AGGeometryPrimitive AGGraphLegend
{
geometry = {0,0};
AGColor fillColor = "background";
AGColor frameColor = "antibackground";
AGDistance frameWidth = 0.25;
AGFont labelFont = "Roman-Simplex";
AGDistance labelHeight = 2.7;
AGColor labelColor = "antibackground";
AGInt numColumns = 1;
AGString title = "Legend";
AGFont titleFont = "Roman-Simplex";
AGDistance titleHeight = 3.0;
AGColor titleColor = "antibackground";
AGGraph+IPort2+read+opt &graphs[];
};

Description

AGLegend is a legend, including the information from any AGGraph referenced through the graph's subobject. AGGraphLegendObj includes an AGDataObject for your convenience.

Subobjects

visibility
priority

Inherited from AGPrimitive through AGGeometryPrimitive.

geometry

Inherited from AGGeometryPrimitive.

fillColor
frameColor
frameWidth

Fill color, frame color, and frame width of the rectangular legend area.

labelFont
labelHeight
labelColor

The font, height, and color for the labels in the legend.

numColumns

The number of columns in legend.

title
titleFont
titleHeight
titleColor

Text, font, height, and color of the legend title.

Examples

Libraries.Examples.Annotation_Graphing.logex2
examples/logex2.v

Libraries.Examples.Annotation_Graphing.simpleGraph
examples/simpGph.v

File

v/ag.v

See Also

Related modules

•      AGGeometryPrimitive / AGRenderPrimitive

•      AGGraph

•      AGGraphViewport / AGGraphViewportObj

•      AGPrimitive