ASCALE

Purpose:

Sets X and Y coordinate autoscaling for a window.

Syntax:

ASCALE(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:

Nothing.

Example:

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

 

turns off autoscaling in W1.

 

ascale(W1, 1)

 

turns on autoscaling for W1.

Example:

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

W2: spectrum(w1);loglog(1);ascale(0)

 

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

 

W2 computes the FFT spectrum of W1 on log-log scales with a fixed X and Y scales. When W1 replots, W2 recomputes but the X and Y axes do not adjust.

Remarks:

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

See Also:

RTTINIT

SETONPLOTCALC

XSCALE

YSCALE