The LAYOUT OVERLAY statement
builds a composite using one or more
GTL-statements. You can specify one or more two-dimensional plots within the layout,
provided all plots can share the same type of axes. You can also specify
one or more insets, such as nested layout statements (for example,
LAYOUT GRIDDED), ENTRY statements, and legend statements (for example,
CONTINUOUSLEGEND or DISCRETELEGEND).
The following general
logic applies to rendering the composite:
Note: The details for positioning
insets also apply to insets that are specified within a LAYOUT REGION
block.
-
All plot statements are rendered
first. Plot statement results are always rendered in the plot area.
The plots are stacked on top of one another in the order in which
they are specified, with the last one on top. It is possible for one
plot’s graphical data to obscure graphical data beneath it.
You can control this by selectively ordering the plot statements,
or by using transparency on the individual plots, or by doing both.
-
The insets are rendered next, in
the order in which they are specified. As with the plot statements,
it is possible for the insets to obscure the results of other statements
in the layout.
-
To control the horizontal and vertical
positioning of some insets, you can use the inset statement’s
AUTOALIGN= option, or its HALIGN= and VALIGN= options. Each nested
inset determines its own relative position in the parent OVERLAY.
This positioning achieves the best results for text-based insets whose
size can be easily fit within an open area of the graph wall. A large
text-based inset might not fit well, and an inset that contains a
plot might be dropped from the display without warning when the template
is executed.
-
Some insets, like legends, can
be positioned inside or outside of the plot area using the inset statement’s
LOCATION= option. The inset’s AUTOALIGN= or HALIGN= and VALIGN=
settings are then relative to that location.
Generally, the first
specified plot determines the layout’s default axis characteristics.
To enable another plot to define the axis characteristics, set PRIMARY=TRUE
for that plot. For more information about the default axis characteristics,
see
When Plots Share Data and a Common Axis.
See Also: LAYOUT OVERLAYEQUATED and LAYOUT OVERLAY3D.