具有3列的gnuplot上的点分散

具有3列的gnuplot上的点分散,gnuplot,Gnuplot,我有一个2列的文件,时间和分数。我想添加第三列,它将显示分数同时减少了多少。比如说 10, 200, 180 11, 210, 200 Gnuplot应该显示一条连接这两点的线。 目前,我的gnuplot脚本只显示2列的点分散 #!/usr/bin/gnuplot set grid set title 'Reputação dos peers quando excluíram arquivos' set xlabel 'Tempo Discreto da exclusão' set ylabe

我有一个2列的文件,时间和分数。我想添加第三列,它将显示分数同时减少了多少。比如说

10, 200, 180
11, 210, 200
Gnuplot应该显示一条连接这两点的线。 目前,我的gnuplot脚本只显示2列的点分散

#!/usr/bin/gnuplot
set grid
set title 'Reputação dos peers quando excluíram arquivos'
set xlabel 'Tempo Discreto da exclusão'
set ylabel 'Reputação'

set style line 1 lc rgb '#0060ad' lt 1 lw 1 pi -1 ps 1.0
set style line 2 lc rgb '#dd181f' lt 1 lw 1 pi -1 ps 1.0
set pointintervalbox 0
plot 'ReputationOnExclusion.txt' using 1:2 with points ls 1 title 'Exclusão'
pause -1

要将第二列中的
y
-值与第三列中的值连接起来,可以使用
vectors
打印样式:

set style line 1 lc rgb '#00f0ad' lt 1
set style arrow 1 linestyle 1 nohead
plot 'ReputationOnExclusion.txt' using 1:2:(0):($3-$2) with vectors arrowstyle 1

using
语句中的值为
x y xdelta ydelta
xdelta
0
ydelta
是第三列和第二列之间的差值(是相对值)。

要将第二列中的
y
-值与第三列中的值连接起来,可以使用
向量
打印样式:

set style line 1 lc rgb '#00f0ad' lt 1
set style arrow 1 linestyle 1 nohead
plot 'ReputationOnExclusion.txt' using 1:2:(0):($3-$2) with vectors arrowstyle 1

using
语句中的值为
x y xdelta ydelta
xdelta
0
ydelta
是第三列和第二列之间的差异(是一个相对值)。

我不完全理解您想要实现的目标。点
10200
是否应与
10180
连接?或者第三列应该如何解释呢?是的,就像标准偏差一样,但只是到了我不完全理解你想要达到的程度。点
10200
是否应与
10180
连接?或者第三列应该如何解释?是的,就像标准偏差一样,但仅限于该点下方