Chapter Contents

Previous

Next
ASPECT

ASPECT



Sets the aspect ratio for graphics elements.

Used in: GOPTIONS statement GDEVICE procedure GDEVICE Detail window
Default: device dependent


Syntax
Details

Syntax

ASPECT=scaling-factor

scaling-factor
is a nonnegative integer or real number that determines the ratio of width to height for graphics elements. If you specify ASPECT=1, each graphics element has equal horizontal and vertical scaling factors; ASPECT=2 scales the graphics element twice as wide as its height; and so on. If ASPECT= is not specified or is set to 0 or null, SAS/GRAPH uses the aspect ratio of the hardware device.


Details

The aspect ratio affects many graphics characteristics, such as the shape of software characters and the roundness of pie charts. Some graphics drivers do not produce correct output if the aspect ratio is anything other than the default. When you use a device that uses local scaling (that is, the device itself can scale the output, for example, some plotters), use ASPECT= to tell SAS/GRAPH the scaling factor. If you change ASPECT, you can use the GTESTIT procedure to run a sample graphics output to inspect the effects of the changes.

Note:   You may get more reliable results if you use the default aspect ratio and use the HSIZE= and VSIZE= graphics options to set the dimensions.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

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