Xlabel

The set xlabel command sets the x axis label. Similar commands set labels on the other axes. There is no explicit set x2label command—use set title (see below).

Syntax:

         set xlabel {"<label>"} {<xoff>}{,<yoff>}
         set ylabel {"<label>"} {<xoff>}{,<yoff>}
         set zlabel {"<label>"} {<xoff>}{,<yoff>}
         set y2label {"<label>"} {<xoff>}{,<yoff>}
         show xlabel
         etc.

Specifying the constants <xoff> or <yoff> as optional offsets for a label will move it <xoff> or <yoff> character screen co-ordinates. For example,

         set xlabel -1

will change only the x offset of the xlabel, moving the label roughly one character width to the left.

To clear the label, put no options on the command line. For example,

         set y2label

The default positions of the axis labels are as follows:

xlabel: The x-axis label is centered below the bottom axis.

ylabel: The position of the y-axis label depends on the terminal, and can be one of the following three positions:

1. Horizontal text flushed left at the top left of the plot. Terminals that cannot rotate text will probably use this method.

2. Vertical text centered vertically at the left of the plot. Terminals that can rotate text will probably use this method.

3. Horizontal text centered vertically at the left of the plot. The EEPIC, LaTeX and TPIC drivers use this method. The user must insert line breaks using \ \ to prevent the ylabel from overwriting the plot. To produce a vertical row of characters, add \ \ between every printing character (but this is ugly).

zlabel: The z-axis label is centered along the z axis and placed in the space above the grid level.

y2label: The y2-axis label is placed to the right of the y2 axis. The position is terminal-dependent in the same manner as is the y-axis label.

x2label: There is no set x2label command. If you want to put a label on the x2 axis, use the 'set title' command with new-line characters '' \n'', i.e.,

         set title "This is the title\n\nThis is the x2label"

Note that double quotes must be used.

Please see set syntax for further information about backslash processing and the difference between single- and double-quoted strings.