"curveAutoscale"

Activates or deactivates curve autoscaling.

Synopsis

setValue(string shape, "curveAutoscale", string curvename, bool scale);

getValue(string shape, "curveAutoscale", string curvename, bool &scale);

shape.curveAutoscale(string curvename, bool scale);

Parameters

Parameter Description
shape Name of the object
curvename Name of the trend display curve
scale autoscale or no autoscale (TRUE/FALSE)

Description

This function activates or deactivates trend display autoscaling during runtime. Use "curveAutoscale" to activate Y-axis autoscaling. Set "scale" to TRUE to scale the trend display.

If linkCurves is used and one of the included curves uses the curveAutoscale option, auto scale and the scaling of the curve will be used for all linked curves.

This function has to be called again, when restarting a trend stopped with "trendStop".

Example

The following example displays whether or not autoscaling is active in the log viewer.

main()
{
  shape tr = getShape("trend1");
  bool b;
  ...
  b = tr.curveAutoscale("curve1");
  DebugN(b);
  ...
}

Assignment

Trend