4.1.3 Drawing Arrows

Data may be represented as arrows connecting two points on a plot by using the arrows plot style. This takes four columns of data – $x_1$, $y_1$, $x_2$ and $y_2$ – and for each data point draws an arrow from the point $(x_1,y_1)$ to the point $(x_2,y_2)$. Three different kinds of arrows can be drawn: ones with normal arrow heads, ones with no arrow heads, which just appear as lines, and ones with arrow heads on both ends. The syntax to obtain these varieties is:

plot 'data.dat' with arrows_head
plot 'data.dat' with arrows_nohead
plot 'data.dat' with arrows_twohead

The syntax with arrows is a shorthand for with arrows_head. This plot style is analogous to the vectors plot style in Version 4 of Gnuplot.