Syntax:
set key set key <x>,<y>{,<z>} set nokey show key
The coordinates <x>, <y> (and <z> for splots) specify the location of the key on the plot. The key is drawn as a sequence of lines, with one plot described on each line. On the right hand side of each line is a representation that attempts to mimic the way the curve is plotted. On the left side of each line is the text description, obtained from the plot command. See plot title to change this description. The lines are vertically arranged so an imaginary straight line divides the left- and right-hand sides of the key. It is the coordinates of this line that are specified with the set key command. In a plot, only the x and y coordinates are used to specify the line position. For a splot, x, y and z are all being used as a 3-d location mapped using the same mapping as the plot itself to form the required 2-d screen position of the imaginary line.
Some or all of the key may be outside of the plot boundary, although this may interfere with other labels and may cause an error on some devices.
Examples:
This places the key at the default location:
set keyThis disables the key:
set nokeyThis places a key at coordinates 2,3.5,2
set key 2,3.5,2