AutoScaleLin¶
AutoScaleLin calculates the parameters for the diagram’s axes scaling.
-
rvScale = AutoScaleLin(rsMin, rsMax)
-
rvScale = AutoScaleLin(rsMin, rsMax, nLabel)
Return Value
rvScale = [rsMin, rsMax, rsDelta, rsFormat] rvScale is a real vector with 4 elements: rvScale = [rsMin, rsMax, rsDelta, rsFormat]. rsMin is a recommended minimum value for the diagram axis and rsMax a recommended maximum value. rsDelta is the recommended distance between 2 labels and rsFormat is the recommended number of decimal places for the labels. If rsFormat is negative, an exponential format is recommended.
Parameters
-
rsMin
rsMin is the approximate minimum value of the axis.
-
rsMin
rsMin is the approximate maximum value of the axis.
-
nLabel
nLabel is the number of axis labels.
Example
* AutoScaleLin(-230.9, 1112.13, 5)
-500.0000 1500.0000 500.0000 0.0000
* AutoScaleLin(-230.19212, 11112212.1321)
-2e+006 1.2e+007 2e+006 -1.0000
See also
id-2016973