Chapter Contents

Previous

Next
The GIMPORT Procedure

SCALE Statement


Enlarges or reduces the graphics output by increasing or decreasing the values of the x and y coordinates.

Requirements: You can submit only one SCALE statement.
Tip: You can submit the SCALE statement alone or in conjunction with the TRANSLATE statement, but the SCALE statement is always processed first.
Featured in: Adjusting the Graphics Output



Syntax

SCALE X=factor | Y=factor | X=factor Y=factor;


Required Arguments

At least one of the following arguments is required; both may be used and can be listed in either order:

X=factor
specifies the enlargement or reduction of the values of the x coordinates. Factor is the number by which these values are multiplied and cannot be less than or equal to 0. By default, X=1. Values less than 1 reduce the size of the graphics output while values greater than 1 increase the size of the graphics output. There is no limit on the size of factor.

Y=factor
specifies the enlargement or reduction of the values of the y coordinates. Factor is the number by which these values are multiplied and cannot be less than or equal to 0. By default, Y=1. Values less than 1 reduce the size of the graphics output while values greater than 1 increase the size of the graphics output. There is no limit on the size of factor.


Details

If the shapes in the imported graphics output are too narrow, you can make them wider by increasing the values of the x coordinate. To make the elements in the graphics output twice as wide, specify X=2. To make them half as high, specify Y=.5.

For example, if the values of the x coordinates range from 5 to 50 and if in the SCALE statement the factor for X= is specified as 2, then the values of all of the x coordinates are multiplied by 2 and the range of these values increases. The new range is 10 to 100. And if the values of the y coordinates range from 0 to 25 and if in the SCALE statement the factor for Y= is specified as .5, then the values of all of the y coordinates are multiplied by .5 and the range of these values decreases. The new range is 0 to 12.5.

If you specify a factor that causes the graphics output to exceed the size of the graphics output area, the procedure draws as much of the graphics output as will fit in the available space.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.