gnuplot documentation
gnuplot documentation
gnuplot documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
108 <strong>gnuplot</strong> 4.3 70 SET-SHOW<br />
70.28.1 Key placement<br />
To understand positioning, the best concept is to think of a region, i.e., inside/outside, or one of the<br />
margins. Along with the region, keywords left/center/right (l/c/r) and top/center/bottom (t/c/b)<br />
control where within the particular region the key should be placed.<br />
When in inside mode, the keywords left (l), right (r), top (t), bottom (b), and center (c) push the<br />
key out toward the plot boundary as illustrated:<br />
t/l t/c t/r<br />
c/l c c/r<br />
b/l b/c b/r<br />
When in outside mode, automatic placement is similar to the above illustration, but with respect to<br />
the view, rather than the graph boundary. That is, a border is moved inward to make room for the<br />
key outside of the plotting area, although this may interfere with other labels and may cause an error<br />
on some devices. The particular plot border that is moved depends upon the position described above<br />
and the stacking direction. For options centered in one of the dimensions, there is no ambiguity about<br />
which border to move. For the corners, when the stack direction is vertical, the left or right border<br />
is moved inward appropriately. When the stack direction is horizontal, the top or bottom border is<br />
moved inward appropriately.<br />
The margin syntax allows automatic placement of key regardless of stack direction. When one of the<br />
margins lmargin (lm), rmargin (rm), tmargin (tm), and bmargin (bm) is combined with a single,<br />
non-conflicting direction keyword, the following illustrated positions may contain the key:<br />
l/tm c/tm r/tm<br />
t/lm<br />
c/lm<br />
b/lm<br />
t/rm<br />
c/rm<br />
b/rm<br />
l/bm c/bm r/bm<br />
Keywords above and over are synonymous with tmargin. For version compatibility, above or over<br />
without an additional l/c/r or stack direction keyword uses center and horizontal. Keywords below<br />
and under are synonymous with bmargin. For compatibility, below or under without an additional<br />
l/c/r or stack direction keyword uses center and horizontal. A further compatibility issue is that<br />
outside appearing without an additional t/b/c or stack direction keyword uses top, right and vertical<br />
(i.e., the same as t/rm above).<br />
The can be a simple x,y,z as in previous versions, but these can be preceded by one of five<br />
keywords (first, second, graph, screen, character) which selects the coordinate system in which the<br />
position of the first sample line is specified. See coordinates (p. 24) for more details. The effect of<br />
left, right, top, bottom, and center when is given is to align the key as though it were<br />
text positioned using the label command, i.e., left means left align with key to the right of ,<br />
etc.<br />
70.28.2 Key samples<br />
By default, each plot on the graph generates a corresponding entry in the key. This entry contains a<br />
plot title and a sample line/point/box of the same color and fill properties as used in the plot itself. The<br />
font and textcolor properties control the appearance of the individual plot titles that appear in the key.<br />
Setting the textcolor to "rgb variable" causes the text for each key entry to be the same color as the<br />
line or fill color for that plot. This was the default in some earlier versions of <strong>gnuplot</strong>.<br />
The length of the sample line can be controlled by samplen. The sample length is computed as the sum<br />
of the tic length and times the character width. samplen also affects the positions of