ROTATE

Specifies whether and how to rotate the graph.
Used by: GOPTIONS statement, GDEVICE procedure, GDEVICE Detail window
Restriction: not supported by Java or ActiveX

Syntax

GOPTIONS: ROTATE=LANDSCAPE | PORTRAIT
GOPTIONS: ROTATE | NOROTATE
GDEVICE: ROTATE=LANDSCAPE | PORTRAIT

Parameter Values

ROTATE | NOROTATE
specifies whether to rotate the graph 90 degrees from its default orientation.
ROTATE=LANDSCAPE
specifies landscape orientation (the graph is wider than it is high).
ROTATE=PORTRAIT
specifies portrait orientation (the graph is higher than it is wide).

Details

If you do not specify a rotation, a default orientation is searched for in this order:
  1. the ORIENTATION setting on an OPTIONS statement
  2. the device-dependent default
By default, many of the graphics output devices such as PNG, GIF, and SVG use the landscape orientation, while the printer devices use the portrait orientation. When you direct the output of a landscape device to printer device, the graph is scaled to fit the portrait dimensions, which might not be desirable. You can use the ROTATE or ROTATE=LANDSCAPE graphics option to rotate the graph 90 degrees on the portrait-oriented printer easel in order to maintain the original dimensions of the graph. For example:
goptions reset=all rotate=landscape;
However, because the graph is being rendered by devices with different orientations in that case, unexpected results might occur. When directing landscape output to a printer device, the best approach is to use the ORIENTATION=LANDSCAPE system option rather than the ROTATE or ROTATE=LANDSCAPE graphics option when printing a graph in the landscape orientation. For example:
options orientation=landscape;
The ORIENTATION=LANDSCAPE system option sets the orientation of all of the output devices to landscape, which eliminates any problems associated with different device orientations.
See ORIENTATION= System Option in SAS System Options: Reference for information about the ORIENTATION= system option.