Label

Arbitrary labels can be placed on the plot using the set label command.

Syntax:

         set label {tag} {"label_text"} {at x,y} {<justification>}
         set nolabel {tag}
         show label

Curly braces {} denote optional items. The text defaults to '''', and the position x,y to 0,0. The x and y values are in the graph's coordinate system. The tag is an integer that is used to identify the label. If no tag is given, the lowest unused tag value is assigned automatically. The tag can be used to delete or change a specific label. To change any attribute of an existing label, use the set label command with the appropriate tag, and specify the parts of the label to be changed. By default, the text is placed flush left against point x,y. If you want to adjust the way the label is positioned with respect to the point x,y, add the parameter <justification>, which may be left, right or center, indicating that the point is to be at the left, right or center of the text. The <justification> may be abbreviated. Labels outside the plotted boundaries are permitted but may interfere with axes labels or other text; use at your own risk.

Examples:

To set a label at (1,2) to ``y=x'' use:

         set label "y=x" at 1,2
To set a label ``y=x^2'' with the right of the text at (2,3), and tag the label number 3, use:
         set label 3 "y=x^2" at 2,3 right
To change the preceding label to center justification, use:
         set label 3 center
To delete label number 2 use:
         set nolabel 2
To delete all labels use:
         set nolabel
To show all labels (in tag order) use:
         show label
The Imagen driver allows \ \ in a string to specify a newline.