move 2 sensors from klanjec to tuhelj
[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 \
41 "/dev/shm/by_temp.pn.14.txt" using 1:2 with lines notitle, \
42 "/dev/shm/by_temp.pn.16.txt" using 1:2 with lines notitle, \
43 "/dev/shm/by_temp.pn.18.txt" using 1:2 with lines notitle, \
44 "/dev/shm/by_temp.pn.20.txt" using 1:2 with lines notitle, \
45 "/dev/shm/by_temp.pn.20.txt" using 1:2 with lines notitle, \
46 "/dev/shm/by_temp.pn.22.txt" using 1:2 with lines notitle, \
47 "/dev/shm/by_temp.pn.24.txt" using 1:2 with lines notitle, \
48 "/dev/shm/by_temp.pn.26.txt" using 1:2 with lines notitle, \
49 "/dev/shm/by_temp.pn.28.txt" using 1:2 with lines notitle, \
50 "/dev/shm/by_temp.pn.30.txt" using 1:2 with lines notitle, \
51 "/dev/shm/by_temp.pn.32.txt" using 1:2 with lines notitle
52 # http://gnuplot-surprising.blogspot.com/2011/09/gnuplot-background-image.html
53 #'/home/dpavlin/zc/www/logo-color.png' binary filetype=png origin=(0,0)  dx=0.5 dy=0.5 with rgbimage notitle
54
55
56 #plot "axes.txt" using 1:3 with lines notitle title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
57
58 set tmargin 0
59
60 set ylabel "Y degrees"
61 plot \
62 "/dev/shm/by_temp.pn.14.txt" using 1:3 with lines notitle, \
63 "/dev/shm/by_temp.pn.16.txt" using 1:3 with lines notitle, \
64 "/dev/shm/by_temp.pn.18.txt" using 1:3 with lines notitle, \
65 "/dev/shm/by_temp.pn.20.txt" using 1:3 with lines notitle, \
66 "/dev/shm/by_temp.pn.20.txt" using 1:3 with lines notitle, \
67 "/dev/shm/by_temp.pn.22.txt" using 1:3 with lines notitle, \
68 "/dev/shm/by_temp.pn.24.txt" using 1:3 with lines notitle, \
69 "/dev/shm/by_temp.pn.26.txt" using 1:3 with lines notitle, \
70 "/dev/shm/by_temp.pn.28.txt" using 1:3 with lines notitle, \
71 "/dev/shm/by_temp.pn.30.txt" using 1:3 with lines notitle, \
72 "/dev/shm/by_temp.pn.32.txt" using 1:3 with lines notitle
73 #, "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
74
75 set tmargin 0
76
77 set xlabel "time"
78 set format x "%d.%m."
79
80 set ylabel "celsius"
81 set yrange [ * : * ]
82
83 plot \
84 "/dev/shm/by_temp.pn.14.txt" using 1:4 with lines notitle, \
85 "/dev/shm/by_temp.pn.16.txt" using 1:4 with lines notitle, \
86 "/dev/shm/by_temp.pn.18.txt" using 1:4 with lines notitle, \
87 "/dev/shm/by_temp.pn.20.txt" using 1:4 with lines notitle, \
88 "/dev/shm/by_temp.pn.20.txt" using 1:4 with lines notitle, \
89 "/dev/shm/by_temp.pn.22.txt" using 1:4 with lines notitle, \
90 "/dev/shm/by_temp.pn.24.txt" using 1:4 with lines notitle, \
91 "/dev/shm/by_temp.pn.26.txt" using 1:4 with lines notitle, \
92 "/dev/shm/by_temp.pn.28.txt" using 1:4 with lines notitle, \
93 "/dev/shm/by_temp.pn.30.txt" using 1:4 with lines notitle, \
94 "/dev/shm/by_temp.pn.32.txt" using 1:4 with lines notitle