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
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.
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.
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".
The lower edge of the graph when graphType is "bars", "barlines", "area", or "stairarea". This is useful for hi-lo graphs.
Example
Libraries.Examples.Annotation_Graphing.graphChar
Libraries.Examples.Annotation_Graphing.graphUI
Libraries.Examples.Annotation_Graphing.logex2
Libraries.Examples.Annotation_Graphing.rainfall
Libraries.Examples.Annotation_Graphing.simpleGraph
File
See Also Related Modules