"curveGridRefVals"

Allows to define the reference value for the grid lines as well as number of grid lines and the distance between them.

Synopsis

setValue(string shape, "curveGridRefVals", string curve, float refValue, float aboveDistance, float belowDistance, int aboveCount, int belowCount);

getValue(string shape, "curveGridRefVals", string curve, float refValue, float aboveDistance, float belowDistance, int aboveCount, int belowCount);

shape.curveGridRefVals(string curve, float refValue, float aboveDistance, float belowDistance, int aboveCount, int belowCount);

Parameter

Parameter Description
shape Name of the object
curve Name of the curve
refValue The position for the reference grid line
aboveDistance Distance between grid lines above the reference value
belowDistance Distance between grid lines below the reference value
aboveCount Number of grid lines shown above the reference value
belowCount Number of grid lines shown below the reference value

Description

Allows to define the reference value for the grid lines as well as number of grid lines and the distance between them.

Example

The following example draws a reference grid line at position 5 as well as 2 lines above and below the reference. The distance between the lines is set to 1.

main()
{
  TREND1.curveGridRefVals("Curve", 5, 1, 1, 2, 2);
  getValue("TREND1","curveGridRefVals","Curve", retDis);
}

Assignment

Trend