gnuplot documentation
gnuplot documentation
gnuplot documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
86 <strong>gnuplot</strong> 4.3 70 SET-SHOW<br />
The s are 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. Unspecified coordinates default to 0. The end<br />
points can be specified in one of five coordinate systems — first or second axes, graph, screen, or<br />
character. See coordinates (p. 24) for details. A coordinate system specifier does not carry over<br />
from the "from" position to the "to" position. Arrows outside the screen boundaries are permitted but<br />
may cause device errors. If the end point is specified by "rto" instead of "to" it is drawn relatively to the<br />
start point. For linear axes, graph and screen coordinates, the distance between the start and the end<br />
point corresponds to the given relative coordinate. For logarithmic axes, the relative given coordinate<br />
corresponds to the factor of the coordinate between start and end point. Thus, a negative relative value<br />
or zero are not allowed for logarithmic axes.<br />
Specifying nohead produces an arrow drawn without a head — a line segment. This gives you yet<br />
another way to draw a line segment on the plot. By default, an arrow has a head at its end. Specifying<br />
backhead draws an arrow head at the start point of the arrow while heads draws arrow heads on both<br />
ends of the line. Not all terminal types support double-ended arrows.<br />
Head size can be controlled by size , or size ,,,<br />
where defines length of each branch of the arrow head and the angle (in degrees)<br />
they make with the arrow. is in x-axis units; this can be changed by first, second, graph,<br />
screen, or character before the ; see coordinates (p. 24) for details. only<br />
takes effect when filled or empty is also used. Then, is the angle (in degrees) the back<br />
branches make with the arrow (in the same direction as ). The fig terminal has a restricted<br />
backangle function. It supports three different angles. There are two thresholds: Below 70 degrees, the<br />
arrow head gets an indented back angle. Above 110 degrees, the arrow head has an acute back angle.<br />
Between these thresholds, the back line is straight.<br />
Specifying filled produces filled arrow heads (if heads are used). Filling is supported on filled-polygon<br />
capable terminals, see help of pm3d (p. 118) for their list, otherwise the arrow heads are closed but<br />
not filled. The same result (closed but not filled arrow head) is reached by specifying empty. Further,<br />
filling and outline is obviously not supported on terminals drawing arrows by their own specific routines,<br />
like metafont, metapost, latex or tgif.<br />
The line style may be selected from a user-defined list of line styles (see set style line (p. 133)) or<br />
may be defined here by providing values for (an index from the default list of styles) and/or<br />
(which is a multiplier for the default width).<br />
Note, however, that if a user-defined line style has been selected, its properties (type and width) cannot<br />
be altered merely by issuing another set arrow command with the appropriate index and lt or lw.<br />
If front is given, the arrow is written on top of the graphed data. If back is given (the default), the<br />
arrow is written underneath the graphed data. Using front will prevent an arrow from being obscured<br />
by dense data.<br />
Examples:<br />
To set an arrow pointing from the origin to (1,2) with user-defined style 5, use:<br />
set arrow to 1,2 ls 5<br />
To set an arrow from bottom left of plotting area to (-5,5,3), and tag the arrow number 3, use:<br />
set arrow 3 from graph 0,0 to -5,5,3<br />
To change the preceding arrow to end at 1,1,1, without an arrow head and double its width, use:<br />
set arrow 3 to 1,1,1 nohead lw 2<br />
To draw a vertical line from the bottom to the top of the graph at x=3, use:<br />
set arrow from 3, graph 0 to 3, graph 1 nohead<br />
To draw a vertical arrow with T-shape ends, use:<br />
set arrow 3 from 0,-5 to 0,5 heads size screen 0.1,90<br />
To draw an arrow relatively to the start point, where the relative distances are given in graph coordinates,<br />
use:<br />
set arrow from 0,-5 rto graph 0.1,0.1