The LAYOUT
OVERLAY statement provides the XAXISOPTS=, YAXISOPTS=, X2AXISOPTS=,
Y2AXISOPTS= options that enable you to manage the axis display separately
for the X, Y, X2, and Y2 axes. The following example template uses
the YAXISOPTS= option to manage the grid lines, tick marks, and tick
values on a Y axis:
begingraph;
layout overlay /
yaxisopts=(
griddisplay=on
display=(ticks tickvalues)
);
seriesplot x=month y=predict;
endlayout;
endgraph;
Within
an OVERLAY layout block, each plot axis is always of a particular
type. In the default cases, the axis type is always DISCRETE, LINEAR,
or TIME. The
TYPE= option enables you to specify an
axis type that overrides the default. For example, when appropriate
for the data, you can request a LOG axis. When you override the default
axis type, you must be sure to specify the correct axis type for the
plot(s) that you are defining.
Each axis
type has features specific to that type, and the following axis options
enable you to specify features for the different types:
DISCRETEOPTS=,
LINEAROPTS=,
LOGOPTS= , and
TIMEOPTS= . One or more of these options can
be specified for an axis, but the specified settings are applied only
to the axis type that supports them.
Unless
otherwise indicated in an option description, each axis option is
available for the X, Y, X2, and Y2 axis.
Interaction. The OVERLAY’s axis options are ignored
when the LAYOUT OVERLAY statement is nested within another layout
type that has external axes in effect. For example, the axis options
are ignored when the OVERLAY is nested in a LAYOUT LATTICE with a
COLUMNAXIS= or ROWAXIS= option in effect.