SETYRANGE

Purpose:

Specifies the y-axis autoscaled plotting range.

Syntax:

SETYRANGE(win1, win2, ..., winN, ybottom, ytop, ntics)

winN

-

Optional. Zero or more windows. Defaults to the current Window.

ybottom

-

A real. Bottom Window boundary.

ytop

-

A real. Top Window boundary.

ntics

-

Optional. An integer, the number of tic values. Defaults to 6.

Returns:

Nothing. The window is scaled to the Y range values. The first and last tics are labeled.

Example:

W1: integ(gnorm(1000, 1));setyrange(-50, 50)

 

W1 contains a series. The Y axis range is set to -50 and 50 with 6 tic values spaced 20 units apart. The autoscaled range is also set to -50 and 50.

Example:

W1: integ(gnorm(1000, 1));setyrange(-50, 50, 9)

 

Same as above except the Y axis has 9 tic values spaced 12.5 units apart.

Remarks:

The tic interval is determined such that the first and last tics of the range are always labeled.

 

SETYRANGE also sets the autoscaled range to the input range. See SETYAUTO for details.

 

Use setyrange(-1, -1) to reset the plotting range to the automatic defaults.

See Also:

AUTOSCALE

CLEAR

SETXRANGE

SETY

SETYAUTO