C-PLOT

Scientific Graphics and Data Analysis

6.5. - gk enter symbols and text for plot key



lets you enter text for an explanatory key (or legend) to your plotting symbols. The key is drawn within the plot window using the draw key (pk and zk) commands described in Chapter 6.
gk
Enter key will prompt you to enter lines of text for the key. Normally you will enter a symbol or character according to the coding used with the sy command. Insert one space after the symbol code and then enter the desired explanatory text.

For example,
PLOT-> gk
Enter symbols and text for up to 16 lines of the key.
Hit <return> for no change.  Hit <^D> to end.
KEY? 0 Our Data
KEY? B Our Theory
KEY? 4 Their Data
KEY? A Their Theory
KEY? ^D EOF

PLOT-> zeak 60u 90
will produce:

If you type the letter c before the symbol code, you will be prompted to change pens when the key is drawn on the plotter. If the first character on a line is z, no symbol will be drawn and the explanatory text will be drawn starting at the center of the symbol column.

The maximum text length for each line of the key is 64 characters, and you can have at most 16 symbols in the key.