8.11.1 ArrowsThe set arrow command may be used to draw arrows on top of graphs; its syntax is illustrated by the following simple example: set arrow 1 from 0,0 to 1,1 Optionally, a third coordinate may be specified. On 2D plots, this is ignored. If no third coordinate is supplied then a value of unset arrow 1 set noarrow 1 or to be replaced with a different arrow by issuing a new command of the form set arrow 1 .... The set arrow command may be followed by the keyword with to specify the style of the arrow. The keywords nohead, head and twohead, placed after the keyword with, can be used to generate arrows with no arrow heads, normal arrow heads, or with two arrow heads. twoway is an alias for twohead, as in the following example: set arrow 1 from 0,0 to 1,1 with twoway Line types, line widths and colors can also be specified after the keyword with, as in the example: set arrow 1 from 0,0 to 1,1 with nohead \ linetype 1 c blue The coordinates for the start and end points of the arrow can be specified in a range of coordinate systems. The coordinate system to be used should be specified immediately before the coordinate value. The default system, first measures the graph using the x- and y-axes. The second system uses the x2- and y2-axes. axis<n> specifies that the position is to be measured along the x0 = 0.0 y0 = 0.0 x1 = 1.0 y1 = 1.0 set arrow 1 from first x0, first y0 \ to screen x1, screen y1 \ with nohead
|