added rijeka, fixed y axes, offset to 0
[zc] / gnuplot / template.gnuplot
1 set terminal pngcairo color size 800,600
2 #set output 'axes.png'
3 set output
4
5 set xdata time
6 set timefmt "%Y-%m-%d %H:%M:%S"
7
8 set datafile separator ","
9
10 #unset border
11 #set key outside
12 #set key top left horizontal
13
14 set grid
15 set key outside tmargin center
16
17 #set ylabel "°"
18 #set ylabel "deg."
19 set ylabel "degrees"
20
21 set format x "%H:%M"
22 #set format y "%.2f"
23 set yrange [ -0.1 : 0.1 ]
24
25 #set arrow 1 from first,3 to last,3 nohead linestyle rgb "#ff0000"
26
27 set multiplot
28 set size 1,0.5
29 set origin 0, 0.5
30
31 #set linetype 1 lc 'green'
32 set linetype 99 lc 'red'
33
34 #plot "axes.txt" using 1:2 with lines title "X angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
35
36 plot "axes.txt" using 1:2:(abs($2) < 3 ? 1: 99) with lines lc variable title "X angle"
37 # http://gnuplot-surprising.blogspot.com/2011/09/gnuplot-background-image.html
38 #'/home/dpavlin/zc/www/logo-color.png' binary filetype=png origin=(0,0)  dx=0.5 dy=0.5 with rgbimage notitle
39
40 set origin 0, 0
41
42 set xlabel "time"
43 #plot "axes.txt" using 1:3 with lines title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
44
45 plot "axes.txt" using 1:3:(abs($3) < 3 ? 2: 99) with lines lc variable title "Y angle"
46 #, "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle