箭头点位于gnuplot的文件上

ale*_*lex 5 gnuplot

我知道通过此命令可以在gnuplot上创建一个箭头。

set arrow from 0,0 to 1,1
Run Code Online (Sandbox Code Playgroud)

但是问题是我想创建一组箭头。位于file.data上。x1,y1,x2和y2不在数据文件中,我只是将它们展示出来以更好地显示它们

x1  y1   x2   y2 

80 42.34 75 50.34
75 50.34 65 50.34
65 50.34 60 58.34
60 58.34 65 66.34
65 66.34 60 75
Run Code Online (Sandbox Code Playgroud)

没有任何方法可以将此文件传递给gnuplot。为了创建从(x1,y1)到(x2,y2)的箭头

Mig*_*uel 5

您可以使用with vectors样式进行绘制。对于您的数据文件,这将是:

plot "data" using 1:2:($3-$1):($4-$2) with vectors
Run Code Online (Sandbox Code Playgroud)