你把事情搞得太复杂了。你的数据是纯秒级的。不需要调用“set xdata time”或“set timefmt”变量,因为输入只是一个浮点数。在输出时,根据您是希望X轴标记为绝对时间(午夜换行)还是相对时间(+/-interval),设置XTIC格式。
### absolute vs relative time formats
set table $Data
plot '+' u 1:($1**2) w table
unset table
set multiplot layout 3,1
plot $Data u 1:2 w lp pt 7 lc rgb "web-green"
set xtics time format "%tH:%tM:%tS" # relative time
plot $Data u 1:2 w lp pt 7 lc rgb "red"
set xtics time format "%H:%M:%S" # absolute time
plot $Data u 1:2 w lp pt 7 lc rgb "blue"
unset multiplot
### end of code
但不,对不起,我不能解释为什么你原来的情节是曲折的。