.. highlightlang:: us .. index:: LayerSetAxisScale .. _layersetaxisscale: LayerSetAxisScale ================= .. us.tag LayerSetAxisScale ENGLISH LayerSet Changed5600 :ref:`LayerSetAxisScale` specifies the scale type of a diagram axis. .. function:: bool = LayerSetAxisScale(hLayer, ssXYZ, nScale) .. 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:: nScale *nScale* is one of the following values: .. list-table:: :header-rows: 1 * - Value - Meaning * - 0 - Linear Scale * - 1 - Log Scale * - 2 - Square Scale * - 3 - Time/Date Scale * - 4 - Log Scale, Label linear increasing * - 5 - Category axis. Only for x-axis * - 6 - Crank Angle 720°. Only for x-axis. * - 7 - Crank Angle 360°. Only for x-axis. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2014.4 - New *nScale* value Crank Angle. * - R2014.0 - New *nScale* value Category Axis. .. seealso:: :ref:`overview-diagrams`, :ref:`LayerCreate`, :ref:`LayerGetAxisScale` :sub:`id-2109954`