AGGraphParams


Synopsis

graph parameters

group AGGraphParams
{
AGFloat barWidth;
AGFloat barFrameWidth
AGGraphTypeEnum graphType;
AGLineStyle lineStyle;
AGDistance lineWidth;
AGFloat referenceValue;
AGString scatterSymbols[];
AGFloat shiftPosition;
AGFont symbolFont;
AGDistance symbolHeight;
};

Description

AGGraphParams defines graph parameters.

Subobjects

barWidth

Width of bar when graphType is set to "bars". The width is measured relative to the distance between adjacent X values and should be a value between 0.0 and 1.0.

barFrameWidth

Specifies the frame width of the bars plotted in a bar chart. To remove the bar frames, set this value to 0.

graphType

The type of graph. Valid values are:

•      "curve"

•      "bars"

•      "barlines"

•      "area"

•      "staircase"

•      "stairarea"

•      "scatter"

lineStyle
lineWidth

Line style and line width for lines drawn when graphType is "curve", "staircase", or "barlines".

referenceValue

Sets the start point for bars, barlines, and area graphs if the AGGraph parameter baseValueY is not set. It also determines which part of the graph is colored by the color parameter and which is colored by the negativeColor parameter.

scatterSymbols

Specifies the symbol / string used for scatter graphs. If this parameter is set in AGGraph, each new data value obtains the next symbol cyclically from the scatterSymbols array. If this parameter is set in AGGraphWorld or AGGraphViewport, it determines the default symbols for each graph connected to the AGGraphWorld or AGGraphViewport.

Any number in the symbol string preceded with a backslash ("\") is drawn as the corresponding character from the character table in Appendix A.

shiftPosition

A floating point value between -1.0 and 1.0 that positions graphs of type "staircase" or "stairarea" by shifting the data values with respect to the X axis. A value of -1.0 shifts the graph so that it aligns to the first of two consecutive X axis values. A value of 1.0 aligns the graph to the second consecutive X axis value. The default value of 0.0 positions the graph in the middle of two consecutive values.

symbolFont
symbolHeight

Sets the font and height used for the symbol strings plotted for graph of type "scatter".

Example

Not available.

File

v/ag.v

See Also

Related modules

•      AGGraph

•      AGGraphViewport / AGGraphViewportObj

•      AGGraphWorld