Chapter Contents

Previous

Next
The GIMPORT Procedure

TRANSLATE Statement


Adjusts the location on the display of the graphics output imported by the procedure. Graphics output can be shifted left or right by offsetting the x values or shifted up or down by offsetting the y values.

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



Syntax

TRANSLATE X=offset | Y=offset | X=offset Y=offset ;


Required Arguments

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

X=offset
specifies the number of units in percent of the display area to move the graphics output right (positive numbers) or left (negative numbers). The value of offset is added to the value of the x coordinate. By default, X=0.

Y=offset
specifies the number of units in percent of the display area to move the graphics output up (positive numbers) or down (negative numbers). The value of offset is added to the value of the y coordinate. By default, Y=0.


Details

The TRANSLATE statement adjusts the position of the graphics output without changing its size. The amount of the offset that is specified for X= or Y= in the TRANSLATE statement is the amount that the graphics output is moved.

For example, suppose your imported graphics output is positioned in the upper-left corner of the display. To move it right 10% and down 5%, use the following statement:

translate x=10 y=-5;


Chapter Contents

Previous

Next

Top of Page

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