01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

36 SET-SHOW gnuplot 4.0 73<br />

Some or all of the key may be outside of the graph boundary, although this may interfere with other<br />

labels and may cause an error on some devices. If you use the keywords outside or below, gnuplot<br />

makes space for the keys and the graph becomes smaller. Putting keys outside to the right, they occupy<br />

as few columns as possible, and putting them below, as many columns as possible (depending of the<br />

length of the labels), thus stealing as little space from the graph as possible.<br />

When using the TeX or PostScript drivers, or similar drivers where formatting information is embedded<br />

in the string, gnuplot is unable to calculate correctly the width of the string for key positioning. If<br />

the key is to be positioned at the left, it may be convenient to use the combination set key left Left<br />

reverse. The box and gap in the grid will be the width of the literal string.<br />

If splot is being used to draw contours, the contour labels will be listed in the key. If the alignment of<br />

these labels is poor or a different number of decimal places is desired, the label format can be specified.<br />

See set clabel (p. 58) for details.<br />

Examples:<br />

This places the key at the default location:<br />

set key default<br />

This disables the key:<br />

unset key<br />

This places a key at coordinates 2,3.5,2 in the default (first) coordinate system:<br />

set key 2,3.5,2<br />

This places the key below the graph:<br />

set key below<br />

This places the key in the bottom left corner, left-justifies the text, gives it a title, and draws a box<br />

around it in linetype 3:<br />

set key left bottom Left title ’Legend’ box 3<br />

36.29 Label<br />

Arbitrary labels can be placed on the plot using the set label command.<br />

Syntax:<br />

set label {}<br />

{ {""{,}} {, ...}} }<br />

{at }<br />

{left | center | right}<br />

{norotate | rotate {by }}<br />

{font "{,}"}<br />

{front | back}<br />

{textcolor }<br />

{point {offset x, y} | nopoint}<br />

unset label {}<br />

show label<br />

The is specified by either x,y or x,y,z, and may be preceded by first, second, graph, or<br />

screen to select the coordinate system. See coordinates (p. 18) for details.<br />

The tag is an integer that is used to identify the label. If no is given, the lowest unused tag<br />

value is assigned automatically. The tag can be used to delete or modify a specific label. To change<br />

any attribute of an existing label, use the set label command with the appropriate tag, and specify the<br />

parts of the label to be changed.<br />

The can optionally contain numbers, generated by replacement of printf()-like format<br />

specifiers contained in . The number to be used is given by the following the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!