.. highlightlang:: us .. index:: LayerSetAutoScale .. _layersetautoscale: LayerSetAutoScale ================= .. us.tag LayerSetAutoScale ENGLISH LayerSet The :ref:`LayerSetAutoScale` function specifies if an axis is automatically rescaled if the data of one of the datasets has been changed. .. function:: bool = LayerSetAutoScale(hLayer, ssXYZ, bAuto) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hLayer Identifies the layer. .. uparam:: ssXYZ *ssXYZ* is ``"X"`` for the x-axis, ``"Y"`` for the y-axis and ``"Z"`` for the z-axis. .. uparam:: bAuto If *bAuto* is TRUE (1), the specified axis will be rescaled if one of the datasets in the diagram has been changed. .. seealso:: :ref:`overview-diagrams`, :ref:`LayerGetAutoScale`, :ref:`LayerCreate`, :ref:`LayerSetLabelNum` :sub:`id-346384`