Csv 所有点y值未定义gnuplot

Csv 所有点y值未定义gnuplot,csv,time,graph,gnuplot,Csv,Time,Graph,Gnuplot,我在gnuplot上的基于时间的图表上遇到了问题。我的图表绘制了来自噪声传感器的CSV文件的数据。我的CSV文件以以下格式编写: Time,Decibel 08:00:28,56.5 08:00:30,55.5 08:00:31,59.6 08:00:33,61.8 等等 我的gnuplot脚本如下所示: set datafile separator "," set autoscale fix set key outside right center set xdata time set ti

我在gnuplot上的基于时间的图表上遇到了问题。我的图表绘制了来自噪声传感器的CSV文件的数据。我的CSV文件以以下格式编写:

Time,Decibel
08:00:28,56.5
08:00:30,55.5
08:00:31,59.6
08:00:33,61.8
等等

我的gnuplot脚本如下所示:

set datafile separator ","
set autoscale fix
set key outside right center
set xdata time
set timefmt '"%H:%M:%S"'
set xrange ['"08:00"':'"18:00"']
set terminal png
set output "/home/pi/Desktop/Codes/Graph/Picture/graph.png"
set title "Graph"

plot '/home/pi/Desktop/Codes/Graph/Values/2017-02-08.csv' using 1:2 with lines

我做错了什么?是否可以将X设置为08:00到18:00之间的每小时一次?

这似乎是由以下内容中的双引号引起的:

set timefmt '"%H:%M:%S"'
set xrange ['"08:00"':'"18:00"']
尝试以下方法:

set timefmt "%H:%M:%S"
set xrange ["08:00:00":"18:00:00"]
对于x-tics,可以使用与xrange相同的符号设置开始,然后以秒为单位指定步长。例如,每2小时显示一次tic:

set xtics "08:00:00",2*3600
(或者,事实上,甚至
set xtics“08:00:00”、“02:00:00”
似乎也能工作)