有没有人知道如何摆脱这个“问题”;“小酒吧”;在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