Label

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

Syntax:

         set label {<tag>} {"<label_text>"} {at <position>}
                           {<justification>} {font "<name><,size>"}
         set nolabel {<tag>}
         show label

The <position> is specified by either x,y or x,y,z, and may be preceded by first, second, graph, or screen to select the co-ordinate system. See set co-ordinates for details.

The text is scanned for backslash-octal ( \nnn) conversion. It defaults to the null text ''''.

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 modify 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 the point x,y,z. To adjust the way the label is positioned with respect to the point x,y,z, 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. Labels outside the plotted boundaries are permitted but may interfere with axis labels or other text.

If one (or more) axis is timeseries, the appropriate co-ordinate should be given as a quoted time string according to the timefmt format string. See set {x,y,z}data and set timefmt.

The EEPIC, Imagen, LaTeX, and TPIC drivers allow \ \ in a string to specify a newline.

Examples:

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

         set label "y=x" at 1,2
To set a label of the sign Sigma of size 24 at center of plot area, use:
         set label "S" at graph 1,2 font "Symbol,24"
To set a label ``y=x^2'' with the right of the text at (2,3,4), and tag the label as number 3, use:
         set label 3 "y=x^2" at 2,3,4 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
To set a label on a plot with a timeseries (timefmt=''%d/%m/%y,%H:%M) on the x axis, use something like:
         set label "Harvest" at "25/8/93",1