.. highlightlang:: us .. index:: AutoScaleLin .. _autoscalelin: AutoScaleLin ============ .. us.tag AutoScaleLin ENGLISH :ref:`AutoScaleLin` calculates the parameters for the diagram's axes scaling. .. function:: rvScale = AutoScaleLin(rsMin, rsMax) rvScale = AutoScaleLin(rsMin, rsMax, nLabel) .. us.return **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. .. us.params **Parameters** .. uparam:: rsMin *rsMin* is the approximate minimum value of the axis. .. uparam:: rsMin *rsMin* is the approximate maximum value of the axis. .. uparam:: nLabel *nLabel* is the number of axis labels. .. us.example **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 .. seealso:: :ref:`AutoScaleLog`, :ref:`LayerAutoScale` :sub:`id-2016973`