draw graphs by_temp buckets daily
[zc] / gnuplot / by_temp.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"
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
23 set format x ""
24 #set format y "%.2f"
25 set yrange [ -0.1 : 0.1 ]
26
27 #set arrow 1 from first,3 to last,3 nohead linestyle rgb "#ff0000"
28
29 #set multiplot
30 set multiplot layout 3,1
31
32 set lmargin at screen 0.125
33
34 #set linetype 1 lc 'green'
35 set linetype 99 lc 'red'
36
37 #plot "axes.txt" using 1:2 with lines title "X angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
38
39 set ylabel "X degrees"
40 plot "/dev/shm/by_temp.pn.18.txt" using 1:2 with lines title 18, \
41 "/dev/shm/by_temp.pn.20.txt" using 1:2 with lines title 20, \
42 "/dev/shm/by_temp.pn.22.txt" using 1:2 with lines title 22, \
43 "/dev/shm/by_temp.pn.24.txt" using 1:2 with lines title 24, \
44 "/dev/shm/by_temp.pn.26.txt" using 1:2 with lines title 26, \
45 "/dev/shm/by_temp.pn.28.txt" using 1:2 with lines title 28
46 # http://gnuplot-surprising.blogspot.com/2011/09/gnuplot-background-image.html
47 #'/home/dpavlin/zc/www/logo-color.png' binary filetype=png origin=(0,0)  dx=0.5 dy=0.5 with rgbimage notitle
48
49
50 #plot "axes.txt" using 1:3 with lines title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
51
52 set tmargin 0
53
54 set ylabel "Y degrees"
55 plot "/dev/shm/by_temp.pn.18.txt" using 1:3 with lines title 18, \
56 "/dev/shm/by_temp.pn.20.txt" using 1:3 with lines title 20, \
57 "/dev/shm/by_temp.pn.22.txt" using 1:3 with lines title 22, \
58 "/dev/shm/by_temp.pn.24.txt" using 1:3 with lines title 24, \
59 "/dev/shm/by_temp.pn.26.txt" using 1:3 with lines title 26, \
60 "/dev/shm/by_temp.pn.28.txt" using 1:3 with lines title 28
61 #, "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
62
63 set tmargin 0
64
65 set xlabel "time"
66 set format x "%d.%m."
67
68 set ylabel "celsius"
69 set yrange [ * : * ]
70
71 plot "/dev/shm/by_temp.pn.18.txt" using 1:4 with lines title 18, \
72 "/dev/shm/by_temp.pn.20.txt" using 1:4 with lines title 20, \
73 "/dev/shm/by_temp.pn.22.txt" using 1:4 with lines title 22, \
74 "/dev/shm/by_temp.pn.24.txt" using 1:4 with lines title 24, \
75 "/dev/shm/by_temp.pn.26.txt" using 1:4 with lines title 26, \
76 "/dev/shm/by_temp.pn.28.txt" using 1:4 with lines title 28
77