Manual page for proc_legend(PL)
Renders a legend.
proc legend uses entries that you must have already supplied in
previous plotting procs (usually in an attribute called legendlabel).
You can also explicitly define legend entries using proc legendentry
one or more times. If this is not clear, check the example.
For bars, each legend entry is shown with a small square sample of color.
For lineplot and curvefit, a small segment of the line is shown.
For scatterplot, a symbol is shown.
Legend entries are presented in the order that the plotting procs were
executed (or reverse order if specified).
After the legend is rendered, the internal list of legend entries is normally
cleared (this can be suppressed using the noclear attribute).
It is also possible to clear the internal list without rendering any
legend using the reset attribute.
See the Gallery Legends examples
Plotting proc(s) containing a legendlabel specification,
and/or proc legendentry must have already been executed.
format multiline | singleline
Controls the overall format of the legend.
multiline gives entries that are placed downward on multiple lines.
singleline gives entries that are placed across all on the same line.
Example: format: singleline
Location for the legend.
x will correspond to the beginning of the label (line segments,
color squares, etc. will appear to the left of this).
y will correspond to the top of the legend.
Example: location: min+1.0 max
Details regarding the rendering of the legend text entries.
Amount of separation between entries.
If specified, controls the length of line segments.
If specified, controls the size of color sample square.
n is the length of one side in
outlinecolors yes | no
If yes, color samples will be outlined.
Normally they are not, except for white.
If specified, allows the order of legend entries to be controlled
explicitly. Also allows entries to selected/omitted.
(Normally, entries are rendered in the order that they were added
and all entries are rendered.)
multilinetext should have one line for each entry to appear in the legend.
Each line will be compared against all defined legend labels.
Upon a match, that entry will be rendered.
The comparison is case-insensitive.
Only the first few characters (enough to uniquely match) need be given
in the specifyorder attribute.
Other Gallery examples:
reverseorder yes | no
If yes, entries are rendered from last to first.
colortext yes | no
If yes, entry text inherits the color of the
sample. Normally it does not.
noclear yes | no
If yes, the defined legend entries list is not cleared.
Normally they are cleared out after the legend has been rendered.
This is useful in rendering multi-column legends.
Example: this is used in Gallery example
If specified, no legend will be rendered and the internal list
of legend entries will be cleared. This might be useful in situations
where a number of cloned plots (and cloned legendentries) are being
done, but only one actual legend is desired. New in version 1.40.
data display engine
Copyright Steve Grubb