Vectors

The 2D vectors style draws a vector from (x,y) to (x+xdelta,y+ydelta). The 3D vectors style is similar, but requires six columns of basic data. In both cases, an additional input column (5th in 2D, 7th in 3D) may be used to provide variable (per-datapoint) color information. (see linecolor (p. [*]) and rgbcolor variable (p. [*])). A small arrowhead is drawn at the end of each vector.

    4 columns:  x  y  xdelta  ydelta
    6 columns:  x  y  z  xdelta  ydelta  zdelta

The keywords "with vectors" may be followed by inline arrow style properties, by reference to a predefined arrow style, or by a request to read the index of the desired arrow style for each vector from a separate input column. See the first three examples below.

Examples:

    plot ... using 1:2:3:4 with vectors filled heads
    plot ... using 1:2:3:4 with vectors arrowstyle 3
    plot ... using 1:2:3:4:5 with vectors arrowstyle variable
    splot 'file.dat' using 1:2:3:(1):(1):(1) with vectors filled head lw 2

Notes: You cannot mix the arrowstyle keyword with other line style qualifiers in the plot command. An additional column of color values is required if the arrow style includes lc variable or lc rgb variable.

splot with vectors is supported only for set mapping cartesian. set clip one and set clip two affect vectors drawn in 2D. See set clip (p. [*]) and arrowstyle (p. [*]).

See also the 2D plot style with arrows (p. [*]) that is identical to with vectors (p. [*]) except that each arrow is specified using x:y:length:angle.