Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
有没有人知道如何摆脱这个“问题”;“小酒吧”;在gnuplot图中?_Gnuplot - Fatal编程技术网

有没有人知道如何摆脱这个“问题”;“小酒吧”;在gnuplot图中?

有没有人知道如何摆脱这个“问题”;“小酒吧”;在gnuplot图中?,gnuplot,Gnuplot,下面是我的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 pl

下面是我的
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($0)%20)==0?sprintf("%d", $0*10):"") title "Comparing with the original" with lines lw 2 lc rgb "#DC143C" 
在数据文件中,我有100个数据。因此,基本上输出数据如下所示:


因为我有100个数据,所以在上图中,x轴上方显示了一个非常频繁的“条”。所以我的问题是,如何消除上图中x轴上的“小条”?

您使用了错误的方法来设置XTIC。无需为此使用
xtic()
。只需使用
set xtics
即可:

set xtics 200
plot 'plot/test.csv' using ($0*10):2