YSCALE

Purpose:

Sets Y coordinate autoscaling for a window.

Syntax:

YSCALE(win, mode)

win

-

Optional. A Window, defaults to the current Window.

mode

-

Optional. An integer, the scaling mode:

0:

No scaling

1:

Autoscaling (default)

Returns:

An integer, the previous Y autoscaling mode.

Example:

W1: gsin(1000,1/1000,4);yscale(0)

 

turns off Y autoscaling in W1.

 

yscale(W1, 1)

 

turns on Y autoscaling for W1.

Example:

W1: integ(gnorm(10000, 1/10000));setonplotcalc(1)

W2: movavg(w1, 100, "center");yscale(0);overp(w1)

 

W1 contains the source data. Any replotting of W1 through scrolling, expansion, compression, etc., triggers a recalculation in W2.

 

W2 computes the 100-point centered moving average of W1 with a fixed Y scale axis. The moving average is displayed together with the original data. When W1 replots, W2 recomputes but the Y scale does not adjust.

Remarks:

YSCALE is useful for data in real time and SETONPLOTCALC windows.

See Also:

ASCALE

RTTINIT

SETONPLOTCALC

XSCALE