Chapter Contents |
Previous |
Next |
%SCALE |
Variables affected: | X, Y |
Syntax | |
Details |
Syntax |
%SCALE (ptx, pty, x1, y1, x2, y2 , vx1, vy1, vx2, vy2); |
Parameter | Description |
ptx, pty | numeric variables; the coordinates to scale. |
x1, y1 | numeric constants; the minima of the original range. |
x1, y2 | numeric constants; the maxima of the original range. |
vx1, vy1 | numeric constants; the minima of the new range. |
vx2, vy2 | numeric constants; are the maxima of the new range. |
Details |
The SCALE macro reduces or enlarges Annotate graphics. It scales only graphics elements that use two-dimensional, numeric coordinates. The SCALE macro does not affect graphics elements that are drawn with text functions.
The difference between the SCALE and SCALET macros is that the SCALE macro always places the origin at (0, 0) and plots the new coordinates with respect to that origin. The SCALET macro plots the new coordinates with respect to (vx1, vy1). This SCALE macro reduces x and y coordinates by 50 percent as shown in Using the SCALE Macro to Reduce the Size of a Box:
%SCALE(x, y, 0, 0, 100, 100, 0, 0, 50, 50);
Using the SCALE Macro to Reduce the Size of a Box
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.