有谁知道如何摆脱 gnuplot 图中的 "small bar" ?

Does anyone know how to get rid of the "small bar" in a gnuplot graph?

下面是我的 gnuplot 代码。

set term pdf enhanced
set output "plot/test.pdf"
set datafile separator ","
set xtics norangelimit
set ytics nomirror
set termoption dashed
set xlabel "times"
set yrange [0:100]
set xtics nomirror
set grid ytics
set key right bottom
plot 'plot/test.csv' using 2:xtic((int([=11=])%20)==0?sprintf("%d", [=11=]*10):"") title "Comparing with the original" with lines lw 2 lc rgb "#DC143C" 

在数据文件中,我有 100 个数据。所以基本上输出图如下所示:

因为我有100条数据,所以在上图中,x轴上方出现了一个非常频繁的"bar"。那么我的问题是,如何消除上图中x轴上的"small bars"?

你设置xtics的方式有误。无需为此使用 xtic()。为此只需使用 set xtics

set xtics 200
plot 'plot/test.csv' using ([=10=]*10):2