0
我正在嘗試使用Gnuplot製作折線圖。我需要得到類似下面的但有一個例外:當有空數據時避免連接點
在上面的例子中可以看到一條直線,其在空數據連接兩個不同的點。這是一個穿越'2016-09-27 00:00:00'x打勾。我希望有一個空的空間,而不是那條直線。我怎麼能做到這一點?
這是當前的代碼:
set xdata time
set terminal pngcairo enhanced font "arial,10" fontscale 1.0 size 900, 350
set output filename
set key off
set timefmt '"%Y-%m-%d %H:%M:%S"'
set format x "%Y-%m-%d %H:%M"
set xtics rotate by -80
set mxtics 10
set datafile missing "-"
set style line 1 lt 2 lc rgb 'blue' lw 1
set style line 2 lt 2 lc rgb 'green' lw 1
set style line 3 lt 2 lc rgb 'red' lw 1
plot\
fuente using 1:2 ls 1 with lines,\
fuente using 1:3 ls 2 with lines,\
fuente using 1:4 ls 3 with lines