I plot with gnuplot the following:
(我用gnuplot绘制以下内容:)
$Data <<EOD
time_,value
1-23:59:58,1
1-23:59:59,2
2-00:00:00,3
2-00:00:01,4
2-00:00:02,5
EOD
set term png size 800,600
set output "ask.png"
set datafile separator comma
set grid
set xdata time
set timefmt "%d-%H:%M:%S"
set format x "%H:%M:%S"
set xtics nomirror
set autoscale xfix
set autoscale x2fix
startnumber=1
xticdata=2
mxticdata=2
set xtics xticdata rotate
set mxtics mxticdata
set x2data
set x2tics startnumber, xticdata rotate
set mx2tics mxticdata
set link x2 via x+1 inverse x-1
plot $Data using 1:2 title columnheader(2)
set output
The output is alright, but you can see from the attached figure that the labels on x2-axis are big numbers, which is not what I want.
(输出没问题,但是从附图中可以看到x2轴上的标签是大数字,这不是我想要的。)
I want to get labels like "1,3,5...". (我想获取类似“ 1、3、5 ...”的标签。)
So what's wrong with my code?
(那么我的代码有什么问题呢?)
And how to correct it? (以及如何纠正呢?)
Thanks. (谢谢。)
ask by lyl translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…