SETWLIKE

Purpose:

Copies the attributes of one Window to another.

Syntax:

SETWLIKE(

srcwin, deswin1, deswin2, ... deswinN, coords, level)

srcwin

-

Source Window.

deswinN

-

Optional. Zero or more Destination Windows. Defaults to the current Window.

coords

-

Optional. An integer indicating coordinate setting:

0:

do not alter coordinates of destination windows (default)

1:

set coordinates and tic intervals of destination windows to source window

level

-

Optional. An integer indicating level of similarity:

-1:

ignore

 0:

copy static window attributes like color (default)

 1:

copy static window attributes like color and series attributes like plot style

 2:

copy series attributes like plot style

Example:

setwlike(W3)

 

sets the color and other static Window attributes of the current Window to the values in W3.

 

setwlike(W3, W1, W2, W5, 1, 1)

 

sets the coordinates, colors, plot styles and other static attributes of W1, W2 and W5 to be the same as W3.

Example:

W1: gnorm(100,.01);onplot(eval('setwlike(W1,W2,1,1)'))

W2: gnorm(100,.01);onplot(eval('setwlike(W2,W1,1,1)'))

 

W1 scrolls or sizes when W2 scrolls or sizes and W2 scrolls or sizes when

W1 scrolls or sizes.  ONPLOT evaluates it's input expression whenever the series plots. EVAL removes the circular dependencies of W1 and W2.

See Also:

ONPLOT

SETASPECT

SETCOLOR

SETXY