AGGraph


Synopsis

one graph based on given input data

AGPrimitive+AGGraphParams AGGraph
{
AGFloat barOffset;
AGFloat+IPort2 baseValuesY[];
AGColor color;
AGString+IPort2 legendText => name_of(<-);
AGColor negativeColor;
AGFloat+IPort2 valuesX[];
AGFloat+IPort2 valuesY[] = {0.1,2,3,2,2,4,5,3,2,3};
};

Description

AGGraph draws one graph of type curve, scatter, bars, barlines, area, staircase, or stairarea. The data for the chart is given as Y only, Y and base Y, X and Y, or X and Y and base Y.

Subobjects

visibility
priority

Inherited from AGPrimitive.

barWidth
barFrameWidth
graphType
lineStyle
lineWidth
referenceValue
scatterSymbols
shiftPosition
symbolFont
symbolHeight

Inherited from AGGraphParams.

barOffset

A value between -1.0 and 1.0 that represents the center of a bar or barline. If this value is unset, the value is retrieved from the barOffsets parameter in the connected AGGraphWorld or AGGraphViewport.

legendText

A string passed to an AGGraphLegend connected to this AGGraph.

color

The color of the graph. If negativeColor is also set, color represents only the color for values larger than the referenceValue parameter in AGGraphWorld. If the color is unset, the value is retrieved from the graphColors parameter in the connected AGGraphWorld or AGGraphViewport.

negativeColor

If negativeColor is set and color is set, color represents only the color for values larger than the referenceValue parameter in AGGraphWorld. This parameter has no effect for graphType equal to "area" or "stairarea".

valuesX

X values for the graph. If unset, values 1, 2, 3, 4, and up to the number of Y values are used.

valuesY

Y values for the graph. This subobject must be set to plot a graph.

baseValuesY

The lower edge of the graph when graphType is "bars", "barlines", "area", or "stairarea". This is useful for hi-lo graphs.

Examples

Libraries.Examples.Annotation_Graphing.graphChar
examples/gphChar.v

Libraries.Examples.Annotation_Graphing.graphUI
examples/gphUI.v

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

Libraries.Examples.Annotation_Graphing.rainfall
examples/rainfall.v

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

File

v/ag.v

See Also

Related modules

•      AGGraphFieldObj

•      AGGraphLegend / AGGraphLegendObj

•      AGGraphParams

•      AGGraphViewport / AGGraphViewportObj

•      AGGraphWorld

•      AGPrimitive