Gnuplot如何制作x轴1,3,5。。。而不是1,2,3,4,

Gnuplot如何制作x轴1,3,5。。。而不是1,2,3,4,,gnuplot,Gnuplot,我有一个文本文件,其中包含一列从C程序生成的数据,我正在通过gnuplot绘制该程序。无需从C程序生成索引的附加列,即无需更改数据,例如: “stat”.txt” 到 我可以让gnuplot将x轴编号从1,2,3,4…更改为1,3,5,7 当Iplot“stat.txt”时,默认情况下,每行条目对应的x值为1,2,3,4 目前,我确实为索引添加了一列,并使用命令以1:2绘制“stat.txt”,但我很想知道。gnuplot中的第0列是记录编号 plot "stat.txt" using (2*$

我有一个文本文件,其中包含一列从C程序生成的数据,我正在通过gnuplot绘制该程序。无需从C程序生成索引的附加列,即无需更改数据,例如:

“stat”.txt”

我可以让gnuplot将x轴编号从1,2,3,4…更改为1,3,5,7

当I
plot“stat.txt”
时,默认情况下,每行条目对应的x值为1,2,3,4


目前,我确实为索引添加了一列,并使用命令
以1:2绘制“stat.txt”,但我很想知道。

gnuplot中的第0列是记录编号

plot "stat.txt" using (2*$0-1):1

将为绘图上的x值提供1,3,5。

gnuplot中的第0列是记录编号

plot "stat.txt" using (2*$0-1):1
将为绘图上的x值提供1,3,5

plot "stat.txt" using (2*$0-1):1