14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

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.

70 SET-SHOW <strong>gnuplot</strong> 4.3 109<br />

point samples in the key since these are drawn at the midpoint of the sample line, even if the sample<br />

line itself is not drawn.<br />

The vertical spacing between lines is controlled by spacing. The spacing is set equal to the product of<br />

the pointsize, the vertical tic size, and . The program will guarantee that the vertical<br />

spacing is no smaller than the character height.<br />

The is a number of character widths to be added to or subtracted from the length<br />

of the string. This is useful only when you are putting a box around the key and you are using control<br />

characters in the text. <strong>gnuplot</strong> simply counts the number of characters in the string when computing<br />

the box width; this allows you to correct it.<br />

70.29 Label<br />

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

Syntax:<br />

set label {} {""} {at }<br />

{left | center | right}<br />

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

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

{noenhanced}<br />

{front | back}<br />

{textcolor }<br />

{point | nopoint}<br />

{offset }<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,<br />

screen, or character to select the coordinate system. See coordinates (p. 24) 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 be a string constant, a string variable, or a string- valued expression. See strings<br />

(p. 36), sprintf (p. 27), and gprintf (p. 101).<br />

By default, the text is placed flush left against the point x,y,z. To adjust the way the label is positioned<br />

with respect to the point x,y,z, add the justification parameter, which may be left, right or center,<br />

indicating that the point is to be at the left, right or center of the text. Labels outside the plotted<br />

boundaries are permitted but may interfere with axis labels or other text.<br />

If rotate is given, the label is written vertically (if the terminal can do so, of course). If rotate<br />

by is given, conforming terminals will try to write the text at the specified angle; nonconforming<br />

terminals will treat this as vertical text.<br />

Font and its size can be chosen explicitly by font "{,}" if the terminal supports font<br />

settings. Otherwise the default font of the terminal will be used.<br />

Normally the enhanced text mode string interpretation, if enabled for the current terminal, is applied<br />

to all text strings including label text. The noenhanced property can be used to exempt a specific<br />

label from the enhanced text mode processing. The can be useful if the label contains underscores, for<br />

example. See enhanced text (p. 186).<br />

If front is given, the label is written on top of the graphed data. If back is given (the default), the label<br />

is written underneath the graphed data. Using front will prevent a label from being obscured by dense<br />

data.<br />

textcolor changes the color of the label text. can be a linetype, an rgb<br />

color, or a palette mapping. See help for colorspec (p. 32) and palette (p. 122). textcolor may be<br />

abbreviated tc.

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

Saved successfully!

Ooh no, something went wrong!