1 set terminal pngcairo color size 800,600
6 set timefmt "%Y-%m-%d %H:%M:%S"
8 set datafile separator ","
12 #set key top left horizontal
15 set key outside tmargin center
25 set yrange [ -0.2 : 0.2 ]
27 #set arrow 1 from first,3 to last,3 nohead linestyle rgb "#ff0000"
30 set multiplot layout 3,1
32 set lmargin at screen 0.125
34 #set linetype 1 lc 'green'
35 set linetype 99 lc 'red'
37 #plot "axes.txt" using 1:2 with lines title "X angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
39 set ylabel "X degrees"
40 plot "axes.txt" using 1:2:(abs($2) < 0.2 ? 1: 99) with lines lc variable notitle
41 # http://gnuplot-surprising.blogspot.com/2011/09/gnuplot-background-image.html
42 #'/home/dpavlin/zc/www/logo-color.png' binary filetype=png origin=(0,0) dx=0.5 dy=0.5 with rgbimage notitle
45 #plot "axes.txt" using 1:3 with lines title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
49 set ylabel "Y degrees"
50 plot "axes.txt" using 1:3:(abs($3) < 0.2 ? 2: 99) with lines lc variable notitle
51 #, "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
56 set format x "%H:%M\n%d.%m."
61 plot "axes.txt" using 1:4 with lines lc 'blue' notitle