我正在尝试绘制飞机甲烷观测值,这些观测值以分钟为单位进行平均。当我尝试将其绘制在gnuplot中时,当天有几个数据点被垂直聚集(而数据以分钟为单位记录)。这意味着数据以天为单位绘制,而不是以分钟为单位。我无法修复它。我附上我使用的简单代码。
set terminal png size 5000,3500 enhanced font 'arial,60'
set output 'series_1.png'
set datafile separator ","
set multiplot layout 2,1
set border 31 lw 4
set grid
set xdata time
set timefmt "%Y/%m/%d/%H:%M"
set border lw 5
set xrange ["2014/09/01/00:01":"2014/11/30/00:01"]
set xtics "2014/09/01/00:01", 3600, "2014/11/30/00:01"
set yrange [1700:2500]
set format x "%d/%b/%y\n%H:%M"
set style line 2 lt -1 lw 4 pt 7 ps 3.5 lc rgb "red"
set style line 3 lt -1 lw 4 pt 7 ps 3.5 lc rgb "blue"
set size 0.8,0.6
set origin 0.1,0.2
set xlabel 'days'
set ylabel 'methane (ppb)'
plot 'data_fwd_alt.txt' using 1:($8*1e9) with linespoints ls 2 notitle
unset multiplot
我的数据如下所示
2014/09/09/12:39, 26.56, 81.21,4254.11,1,000027, 1.95670000E-06, 1.89428172E-06, 6.24182808E-08
2014/09/09/12:40, 26.60, 81.24,4550.06,1,000028, 1.96390000E-06, 1.88243082E-06, 8.14691769E-08
2014/09/09/12:41, 26.65, 81.25,4728.63,1,000029, 1.94770000E-06, 1.86898377E-06, 7.87162278E-08
任何帮助将不胜感激。 谢谢大家。 贾纳丹语
输出: