我使用以下语句为我获取了 GNUPlot 绘图:
plot "force.dat" using 1:2 title "Detroit" with lines, \
"force.dat" u 1:3 t "US Avergae" w linepoints
“force.dat”看起来像
2005 0 0
2006 104 51
2007 202 101
它为我绘制了漂亮的图表。但是,我不喜欢 X 轴,因为它标记为 2005、2005.5、2006、2006.5、2007 等。但是,那些是年份标识符,我只想要 2005、2006、2007 等,怎么可能我摆脱了 GNUPlot 图中的 2005.5、2006.5 等标签?
非常感谢您的想法。