我怎么能在Gnuplot中制作一个如下所示的情节:http://www.fftw.org/accuracy/G4-1.06GHz-gcc3.4/,即有一个明确的x轴?我有这样的数据集:
2 1066.7
4 3122.9
8 4715.2
16 5538.5
32 5757.3
64 5891.4
128 5398.3
256 5280.2
512 5178.4
1024 4048.6
2048 4383
4096 3794.4
Run Code Online (Sandbox Code Playgroud)
每次我绘制时,x轴都是线性刻度,所以我的所有值都是相对于y轴聚集的.我希望每个x值的间距相等,就像在链接图中一样.谢谢.
mgi*_*son 13
在gnuplot中,您需要告诉它使用logscale轴(基数2)
set logscale x 2
set xtics 2 #label powers of 2 instead of the default
plot 'dataset.dat' w lines
Run Code Online (Sandbox Code Playgroud)