ISCALE

Syntax | Arguments | Keywords | Examples | Version History | See Also

The ISCALE procedure changes the scale of an iTool visualization.

This routine is written in the IDL language. Its source code can be found in the file iscale.pro in the lib/itools subdirectory of the IDL distribution.

Syntax

ISCALE, Id [, X[, Y[, Z]]] [, /RESET] [, TOOL=iToolID] [, X=Value] [, Y=Value] [, Z=Value]

Arguments

Id

The identifier of the object to scale. If you pass a partial identifier, the IGETID function is called to retrieve the full identifier string.

X, Y, Z

The scaling factor values for the X, Y, and Z axes.

Keywords

RESET

Set this keyword to reset the scale factors to 1.0 before performing any scaling with supplied X, Y, or Z values.

TOOL

Set this keyword to the identifer of the iTool in which ID is found. If not supplied, the current iTool is used.

X

Set this keyword to the scaling factor to apply to the X axis. If this keyword is supplied, the value supercedes the X argument.

Y

Set this keyword to the scaling factor to apply to the Y axis. If this keyword is supplied, the value supercedes the Y argument.

Z

Set this keyword to the scaling factor to apply to the Z axis. If this keyword is supplied, the value supercedes the Z argument.

Examples

In the following example, we plot a sine wave and reduce the Y axis by 50%.

; Plot a sine wave
X = 2*!PI/100 * FINDGEN(100)
IPLOT, SIN(X)

; Insert a dialog box to pause the flow of action
result = DIALOG_MESSAGE('Click OK to squish the Y axis by 50%.', $
   /INFORMATION)

ISCALE, 'plot', Y = 0.5

Version History

7.1

Introduced

See Also

IGETID, IROTATE, ITRANSLATE, IZOOM, Transformations (iTool User's Guide).