Vector 找不到Gnuplot箭头样式

Vector 找不到Gnuplot箭头样式,vector,gnuplot,Vector,Gnuplot,我试图在Gnuplot中绘制一系列交替箭头样式的向量。我的数据文件gnuCors.txt的第7列只是在每行的1和2之间交替。不幸的是,当我运行此命令时,我所有的箭头看起来都是一样的,我得到了警告: warning: arrowstyle 1 not found warning: arrowstyle 2 not found 我有以下代码 set xrange [0:4] set yrange [0:4] plot "gnuCors.txt" using 1:2:3:4:7 with vect

我试图在Gnuplot中绘制一系列交替箭头样式的向量。我的数据文件gnuCors.txt的第7列只是在每行的1和2之间交替。不幸的是,当我运行此命令时,我所有的箭头看起来都是一样的,我得到了警告:

warning: arrowstyle 1 not found
warning: arrowstyle 2 not found
我有以下代码

set xrange [0:4]
set yrange [0:4]

plot "gnuCors.txt" using 1:2:3:4:7 with vectors arrowstyle variable,\
    "" u 5:6:(sprintf("%d", int($0)/2 + 1)) with labels left offset 0.5 
pause -1
我没有在SE上经常看到这个错误。我还查看了arrow stlyes上的gnuplot文档。我怎样才能解决这个问题

编辑

我的图形由向量对组成。每对都应该有两种矢量样式,以便人们能够区分这两种。标记为1的两个向量的坐标位于gnuCors.txt的第1行和第2行


必须先定义箭头样式,然后才能使用任何箭头样式。没有默认箭头样式:

set style arrow 1 lt 1 head filled size screen 0.03,15,45
set style arrow 2 lt 2 head empty size screen 0.03,15,135
作为展示:

set style arrow 1 lt 1 head filled size screen 0.03,15,45
set style arrow 2 lt 2 head empty size screen 0.03,15,135

set xrange [0:10]
set samples 10
plot '+' using 1:1:(1):(0):(int($0)%2 == 0 ? 3 : 6) with vectors arrowstyle variable t ''

您使用的输出格式有区别吗?我需要对偶数编号的向量使用一种箭头样式,对奇数编号的向量使用另一种样式。您必须首先定义要与
设置样式箭头一起使用的箭头样式…
谢谢。这就解决了问题。