我想要将数据以时间值为x轴绘制图表。 csv文件如下所示
"","12/09/29","00:19:43"," 1787"," 12","12"
"","12/09/29","00:19:48"," 1787"," 12","12"
"","12/09/29","00:19:53"," 1785"," 13","12"
"","12/09/29","00:19:58"," 1785"," 12","12"
这里的问题在于双引号的使用。我尝试了这个:
set timefmt '"%y/%m/%d","%H:%M:%S"'
set datafile separator ","
plot 'myFile.csv' using 2:3:4 with lines
但它无法识别时间格式。
我该如何从两个分开的带有双引号和逗号分隔符的列中识别时间值?
谢谢您的帮助。
Thomas
gnuplot> set xdata time gnuplot> set datafile sep ',' gnuplot> set timefmt '"%y/%m/%d","%H:%M:%S"' gnuplot> plot 'essai.txt' using 2:4 with lines Warning: empty x range [0:0], adjusting to [-1:1]
显示的日期大约是2000/01/01,而不是2012/09/29。我正在使用gnuplot V4.6在Windows XP上(法语版本):是否存在本地设置问题? 有什么想法吗?对于排版不佳,我很抱歉,我不太熟悉这些评论。 Thomas - user1826802