Chapter Contents |
Previous |
Next |
XMAX |
Used in: | GOPTIONS statement; GDEVICE procedure; GDEVICE Detail window |
Restriction: | Ignored by default display drivers and host printing drivers |
See also: | HSIZE, PAPERSIZE, XPIXELS |
Syntax | |
Details |
Syntax |
XMAX=width <IN | CM | PT> |
If XMAX=0, default behavior is used. If both XMAX and PAPERSIZE have been specified on GOPTIONS, the last request is used.
Details |
Like the XPIXELS device parameter, XMAX controls the width of the display area, but the width is in inches, centimeters, or points rather than pixels. Typically, you might use XMAX to change the width of the display area for a hardcopy device.
SAS/GRAPH uses the value of XMAX in calculating the horizontal resolution of the device:
x-resolution = XPIXELS / XMAX |
However, changing XMAX does not necessarily change the resolution:
XPIXELS=1500 and XMAX=5 |
XPIXELS=1800 and XMAX=6 |
XMAX also affects the value of HSIZE, which controls the horizontal dimension of the graphics output area.
HSIZE = XMAX - margins |
Note: The margins
quantity, here,
is not a device parameter. It represents the value of the left margin plus
the right margin. The left margin is the value of HORIGIN. The right margin
is whatever is left over when you subtract HSIZE and HORIGIN from XMAX. The
value of margins is always based on the original XMAX and HSIZE
values that are stored in the device entry.
To permanently change the value of the XMAX device parameter in the device entry, use the GDEVICE procedure. This can change the resolution.
To temporarily change the size of the display and the resolution of the device for the current graph or for the duration of your SAS session, use XMAX= and XPIXELS= in the GOPTIONS statement.
To reset the value of XMAX to the default, specify XMAX=0. To return to the default resolution for the device, specify both XMAX=0 and XPIXELS=0.
See Procedure Output and the Graphics Output Area for more information.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.