DADiSP Worksheet Functions > Function Categories > Display and Manipulation > FOCUS

 

FOCUS

Purpose:

Sets the input focus for Windows with overlayed series by specifying which series are to respond to the scrolling and scaling commands.

Syntax:

FOCUS(win, sernum)

win

-

Optional. A window, defaults to the current Window.

sernum

-

Optional. An integer designating the series. Defaults to the first series in the current Window. Series are counted starting at 1.

Example:

W1: gnorm(1000,1)

W2: integ(w1)

W3: w1*w2;overlay(W1, lred);overlay(w2, lgreen)

 

focus(w3, 2)

 

In this example, W3 has 2 overlayed series, the second one responds to the scrolling and scaling commands.

Remarks:

The SYNC function can be used to "share" scrolling and scaling attributes. The SCALES function can be used to explicitly set types of scales used for the series.

See Also:

GETFOCUS

OVERLAY

SCALES

SYNC