小编Nei*_*lie的帖子

gnuplot X轴上有时间的多行

我已经看过问题,但仍然无法使这个工作.

我的数据集是这样的:

[date] , [%cpu] , [mem]
23:00:39 , 21.9 , 2.1
23:00:44 , 21.8 , 2.1
23:00:49 , 21.8 , 2.1
23:00:54 , 21.8 , 2.1
23:00:59 , 21.7 , 2.1
Run Code Online (Sandbox Code Playgroud)

我的Gnuplot语句(刚开始用于此数据)是:

set timefmt "%H:%m:%s"
set xdata time
set datafile sep ','
plot '/tmp/info' using 2 title 'cpu' with lines, '/tmp/info' using 3 title 'memory%' with lines
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

    Need full using spec for x time data
Run Code Online (Sandbox Code Playgroud)

我尝试过自动缩放x,但我有点迷失,任何帮助都会受到赞赏.

gnuplot

9
推荐指数
1
解决办法
8520
查看次数

标签 统计

gnuplot ×1