DADiSP Worksheet Functions > Function Categories > Plot Attributes > SETZUNITS

 

SETZUNITS

Purpose:

Sets the Z (height) units for a 3D array.

Syntax:

SETZUNITS(series, "zunits")

series

-

Optional. Any series, table, or expression evaluating to a series or table. Defaults to the current Window.

"zunits"

-

A string, the Z units.

Example:

plot3d(spline2(rand(5), 10));setzunits("Newtons")

 

create a 3D series in W1 and sets the z units to Newtons, or N.

Remarks:

See UNITS for a list of supported units.

 

Compound units are reduced in terms of known supported units. If the unit string is not internally defined (such as lightyears), the string is still assigned to the vertical unit string, but further unit reduction is not performed, however unit expansion (e.g. lightyears^2) will still occur.

 

See DEFUNITS to define a unit with a specific expansion.

See Also:

DEFUNITS

GETHUNITS

GETVUNITS

GETZUNITS

SETVUNITS

SETXLABEL

SETYLABEL

SETZLABEL

UNITS