Linux 使用errorbars打印数据,并使用gnuplot对其进行排序

Linux 使用errorbars打印数据,并使用gnuplot对其进行排序,linux,gnuplot,Linux,Gnuplot,我有一个文件statistics.dat,里面有我所做的测量。它有格式 node Mean StdDev 1 11862.4 142.871 2 11722.4 141.330 [...] 我可以用plot'

我有一个文件
statistics.dat
,里面有我所做的测量。它有格式

node Mean     StdDev
1    11862.4  142.871
2    11722.4  141.330 
[...]
我可以用
plot'

现在我想在绘图中添加错误条。当我使用
plot'statistics.dat'u 1:2:3 w errorbars
时,排序明显丢失,因为gnuplot使用x和y值作为坐标

有没有办法用errorbars绘制一个排序图?
还是需要根据排序位置对数据进行排序并添加新的x值?

在这种情况下,从第1列读取x坐标会适得其反。要使用已排序文件的顺序,请使用第0列(行号):

如果原始文件顺序具有某种内在意义,您可能还希望以某种方式对原始顺序进行编码,可能是x tic标签,也可能是颜色范围:

  plot 'statistics.dat' using 2:2:3:1 with errorbars lc palette
  plot 'statistics.dat' using 2:2:3 with errorbars
  plot 'statistics.dat' using 2:2:3:1 with errorbars lc palette