AUTOSCALE

Purpose:

Autoscales the plot in the specified Window.

Syntax:

AUTOSCALE(win, reinit3D)

win

-

Optional. A Window, defaults to the current Window.

reinit3D

-

An integer. The reinit 3D scales flag:

0:

Use 3D range if explicitly set (default)

1:

Re-initialize 3D scales

Example:

W1: gsin(100,.01);setx(0.2, 0.8)

autoscale(W1)

 

W1 initially contains 100 points of a sinewave displayed with the x coordinates set to 0.2 and 0.8. AUTOSCALE rescales the plot from 0.0 to 1.0.

Example:

W1: xyz(gsin(100,.01,4), gcos(100,.01,4), 1..100);setx(-2, 2)

 

W1 contains a 3D spiral and the x-axis is set to 2 to 2.

 

autoscale(w1)

 

Rescales the plot but preserves the x-axis coordinates set by SETX.

 

autoscale(w1, 1)

 

Resets the x-axis to the automatic range, in this case -1 to 1.

Remarks:

See SETXAUTO, SETYAUTO and SETZAUTO to explicitly set the coordinates for autoscaling.

 

reinit3D is ignored is the plot is not 3D.

See Also:

SETX

SETXAUTO

SETY

SETYAUTO

SETZ

SETZAUTO