【问题标题】:trouble making time-based graph with gnuplot使用 gnuplot 制作基于时间的图表时遇到麻烦
【发布时间】:2012-08-18 17:28:53
【问题描述】:

我使用的数据文件是这样的:

2012.07.21  83
2012.07.22  54
2012.07.23  122
2012.07.24  104
2012.07.25  97
2012.07.26  114
2012.07.27  97
2012.07.28  83
2012.07.29  60
2012.07.30  106
2012.07.31  75

这是其中的一小部分,该文件还包含其他年份。 我想要一个按日期显示数字的图表。(显示每天有多少结果)

我所做的是:

gnuplot> set xdata time
gnuplot> set timefmt "%Y.%m.%d"
gnuplot> plot "sample.txt"

但它说:需要完整使用 x 时间数据的规范

我做错了什么?有什么建议?我对 gnuplot 有点陌生,所以我不知道该怎么做

任何帮助都会很棒。提前致谢!

【问题讨论】:

    标签: date time format gnuplot


    【解决方案1】:

    只需将using 1:2 添加到您的plot 行。

    【讨论】:

      猜你喜欢
      • 2015-08-27
      • 1970-01-01
      • 1970-01-01
      • 2016-11-26
      • 2021-03-24
      • 2020-11-02
      • 1970-01-01
      • 2016-05-05
      • 2018-06-06
      相关资源
      最近更新 更多