Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / Using IDL / Scale Method

IDL

Scale Method

Scale Method

The Scale method scales a graphic item in the X, Y, or Z dimensions.

Examples


p = PLOT(RANDOMU(seed, 20))
p.Scale, 0.5, 0.3
 
 
; Need to reset rotation before scaling.
s = SURFACE(/TEST)
s.Rotate, /RESET
s.Scale, 1.5, 1.5, 0.5
s.Rotate, /DEFAULT

Syntax


graphic.Scale, X, Y, Z [, /RESET]

Arguments


X, Y, Z

The scaling factors for the X, Y, and Z dimensions. X, Y, and Z should be greater than 0. A value of 1 indicates no scaling. If Z is not supplied then the default is 1.

Keywords


RESET

Set this keyword to 1 to reset the scale factors to 1.0 before performing any scaling. If RESET is specified then X, Y, and Z are optional.

Version History


8.0

Introduced

See Also


Rotate Method, Translate Method



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us