Gnuplot x范围无效。也许你错了

Gnuplot x范围无效。也许你错了,gnuplot,Gnuplot,我有以下脚本 设置数据文件分隔符“,” 设置网格 设置自动缩放 设置时间“%y-%m-%d%H:%m:%S” 设置扩展数据时间 使用1:2和线条绘制“test.txt” 资料 我想绘制由postgresql生成的数据。几个小时以来我都不明白为什么我会 gnuplot> plot 'test.txt' using 1:2 with lines ^ "strom-plot.txt",

我有以下脚本

设置数据文件分隔符“,”
设置网格
设置自动缩放
设置时间“%y-%m-%d%H:%m:%S”
设置扩展数据时间
使用1:2和线条绘制“test.txt”
资料

我想绘制由postgresql生成的数据。几个小时以来我都不明白为什么我会

gnuplot> plot 'test.txt' using 1:2 with lines
                                             ^
         "strom-plot.txt", line 9: x range is invalid
任何暗示都将不胜感激


编辑:我在gnuplot 5.0 patchlevel 5 debian stretch上

问题是您的
timemt
参数中有错误。您应该使用
%Y
而不是
%Y
。从
帮助timefmt

这在这里起作用:

设置数据文件分隔符“,”
设置网格
设置自动缩放
设置时间“%Y-%m-%d%H:%m:%S”
设置扩展数据时间
使用1:2和线条绘制“test.txt”
结果:


谢谢,我收到了相同的错误消息,并添加了
设置数据文件分隔符“,”
修复了它。
gnuplot> plot 'test.txt' using 1:2 with lines
                                             ^
         "strom-plot.txt", line 9: x range is invalid
Format       Explanation
%y           year, 0--99
%Y           year, 4-digit