DADiSP Worksheet Functions > Function Categories > Plot Attributes > SETXRANGE

 

SETXRANGE

Purpose:

Specifies the x-axis autoscaled plotting range.

Syntax:

SETXRANGE(win1, win2, ..., winN, xleft, xright, ntics)

winN

-

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

xleft

-

A real. Left-hand Window boundary.

xright

-

A real. Right-hand Window boundary.

ntics

-

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

Returns:

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

Example:

W1: integ(gnorm(1000, 1));setxrange(-100, 1100)

 

W1 contains a series. The X axis range is set to -100 and 110 with 11 tic values spaced 120 units apart. The autoscaled range is also set to -100 and 1100.

Example:

W1: integ(gnorm(1000, 1));setxrange(-100, 1100, 6)

 

Same as above except the X axis has 6 tic values spaced 240 units apart.

Remarks:

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

 

SETXRANGE also sets the autoscaled range to the input range. See SETXAUTO for details.

 

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

See Also:

AUTOSCALE

CLEAR

SETX

SETXAUTO

SETYRANGE