LEGEND Procedure
Standard Library procedure that lets you put a legend on a plot or graph.
Usage
LEGEND, label[, col, lintyp, psym, data_x, data_y, delta_y]
Input Parameters
label—A row of labels, one for each data line. This parameter may be characters or numbers.
col—(optional) An array containing the color to be used for each row of the legend. If col is omitted (or if there are fewer colors than labels), the system variable !P.Color is used.
lintyp—(optional) An array containing the values to be used in drawing each line of the legend. If lintyp is omitted (or if there are fewer line types than labels), the system variable !P.Linestyle is used.
psym—(optional) An array containing the value of the plot symbols to be used in the legend. The plot symbols correspond to the values of the system variable !P.Psym. If psym is omitted (or if there are fewer plot symbols than labels), the system variable !P.Psym is used.
data_x—(optional) The x-coordinate of the upper-left corner of the legend in data coordinates. If data_x is omitted, you are prompted for a value.
data_y—(optional) The y-coordinate of the upper-left corner of the legend in data coordinates. If data_y is omitted, you are prompted for a value.
delta_y—(optional) The vertical spacing between the lines of the legend, expressed in data coordinates. If delta_y is omitted, you are prompted for a value.
Keywords
None.
Discussion
You have control of the color, line type, and plotting symbol for each row of the legend using the available keywords. The size of the text is controlled by the system variable !P.Charsize.
For more information, see
System Variables.
See Also
Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.