如何在gnuplot中绘制编号大于1000的列
我有一个1600列的文件如何在gnuplot中绘制编号大于1000的列,plot,gnuplot,Plot,Gnuplot,我有一个1600列的文件 plot "file" using 1:999 title columnhead(999) 打印第999列,但 plot "file" using 1:1000 title columnhead(1000) 生成列100而不是1000,生成的结果与 plot "file" using 1:100 title columnhead(100) 显然,大的列号被包装起来了。是否有解决方法,以便我可以绘制更大的列号?是的,这是一个错误,请参阅 作为解决方法,您可以提取第
plot "file" using 1:999 title columnhead(999)
打印第999列,但
plot "file" using 1:1000 title columnhead(1000)
生成列100而不是1000,生成的结果与
plot "file" using 1:100 title columnhead(100)
显然,大的列号被包装起来了。是否有解决方法,以便我可以绘制更大的列号?是的,这是一个错误,请参阅
作为解决方法,您可以提取第一行,例如使用命令行工具head
,并使用word
访问内容:
header = system('head -n 1 file')
plot 'file' using 1:1000 skip 1 title word(header, 1000)