我正在尝试使用第二个 dat 文件在 gnuplot 中添加点,但它们没有显示在图表上

I'm trying to add points in gnuplot using a second dat file but they aren't showing up on the graph

我正在尝试添加作者使用 gitstats 数据为项目做出贡献的点。我已经将它从 html 文件中解析出来,所以它进入了一个看起来像

的 .dat 文件
2011-04-27 5000
2012-02-04 5000
2011-05-03 5000
2013-08-24 5000
2012-10-29 5000

然后我想使用 gnuplot 绘制整体 LoC,并添加日期点以显示作者何时开始处理项目。 gnuplot 文件看起来像

set terminal png transparent size 1080,640
set size 1.0,1.0

set output 'lines_of_code.png'
unset key
set yrange [0:]
set xdata time
set timefmt "%s"
set format x "%Y-%m-%d"
set grid y
set ylabel "Lines"
set xtics rotate
set bmargin 6
plot 'lines_of_code.dat' using 1:2 w lines, 'authordata.dat' using 1:2 w points

但我的图表没有显示 authordata.dat 点。我相当确定这与我尝试添加第二个 .dat 文件的方式有关,但谷歌搜索到目前为止没有帮助。

感谢克里斯托夫的评论,我意识到了我的问题。这两个文件都需要使用从 1970 01 01 开始的秒数或日期。谢谢