DADiSP Worksheet Functions > Function Categories > Data Manipulation and Editing > SETYOFFSET

 

SETYOFFSET

Purpose:

Specifies the y-offset of an array.

Syntax:

SETYOFFSET(series, yoffset)

series

-

Optional. Any series or table. Defaults to the current Window.

yoffset

-

A real, the desired starting Y value of the series.

Example:

W1: density(rand(10))

 

setyoffset(W1, -10.0)

 

sets the Y offset of the array in W1 to -10.0. The original data plots from 0.0 to 10.0 on the Y axis. The modified data plots from -10.0 to 0.0.

Example:

setyoffset(W1, yoffset(W2))

 

Sets the Y offset of W1 to the Y offset of W2.

Remarks:

The Y offset of a standard series is ignored.

 

If a series is not specified, the current window is used.

See Also:

DELTAX

DELTAY

SETDELTAX

SETDELTAY

SETXOFFSET

SETY

XOFFSET

YOFFSET