The appearance
of graphs produced with GTL is always affected by the ODS style that
is in effect for the ODS destination. From an axis perspective, the
default appearance of the axis line, ticks, tick values, axis label,
and grid lines are controlled by predefined style elements.
|
|
|
|
|
|
"ACROSS" "INSIDE"
"OUTSIDE"
|
|
|
|
|
|
|
|
|
Axis line and
tick thickness
|
|
|
|
|
|
|
|
When to display
grid lines
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Axis tick value
text color
|
|
|
|
|
The following
GTL axis options also control the appearance of axis features. When
you include these options, the corresponding information from the
current style is overridden.
|
|
|
DisplayOpts attribute
of GraphGridLines
|
|
|
|
|
|
|
|
TickDisplay attribute
of GraphAxisLines
|
Example: Assure that the axis label text appears in
bold.
layout overlay / xaxisopts=(labelattrs=(weight=bold))
yaxisopts=(labelattrs=(weight=bold));
Example: Display grid lines.
layout overlay / xaxisopts=(griddisplay=on)
yaxisopts=(griddisplay=on);
Example: Use a dot pattern for grid lines.
layout overlay / xaxisopts=(griddisplay=on gridattrs=(pattern=dot))
yaxisopts=(griddisplay=on gridattrs=(pattern=dot));
Example: Make ticks cross the axes lines.
layout overlay / xaxisopts=(tickstyle=across)
yaxisopts=(tickstyle=across);
For all
of the preceding examples, you would add similar coding to the X2AXISOPTS=
and Y2AXISOPTS= options if the X2 or Y2 axes are used as independent
scales. For complete documentation on the axis options that are available, see
the
SAS/GRAPH Graph Template Language Reference.