exelisvis.com / Docs Center / Using IDL / Graphics / Graphics Methods / Scale Method

Scale Method

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



Comments


Mark Piper
I strongly recommend the use of COMPILE_OPT idl2, so much that I've even written a short article on it:

   http://idldatapoint.com/2011/12/08/the-compile_opt-statement-you-should-use-it/

2nd October 2012 3:07pm
Page 1 of 1  (1 comment)

© 2013 Exelis Visual Information Solutions