设置网格x,但不在00:00:00.000

问题描述 投票:0回答:1

我想知道是否可以设置网格x,但是它不能在时间00:00:00.000开始

set grid x layerdefault front
set xtics nomirror
set ytics nomirror
set xdata time
set timefmt "%H:%M:%S"
set format x "%H:%M:%.3S"
set xrange ["00:00:00.000":maxtime]

enter image description here

gnuplot
1个回答
0
投票

可以将网格设置为使用任何或所有x标记(标记的标记),mxtics(“次要”标记,未标记的标记),x2标记(辅助轴在顶部)或mx2tics(次要标记在辅助轴上。对于绘图例如您显示的那个,一种选择是关闭xtics并沿着x2设置tic,从而将tic忽略为零。

... everything as before, then add ...
set x2data time      # configure secondary axis to match primary axis
set link x2          # same range and scale on both primary and secondary x axis
set grid nox x2      # set xtics off, x2tics on
set x2tics 30., 30.  # tics every 30 seconds starting at 30 seconds
set x2tics format "" # don't label the x2 tics
© www.soinside.com 2019 - 2024. All rights reserved.