draw graphs by_temp buckets daily
[zc] / gnuplot / by_temp.gnuplot
diff --git a/gnuplot/by_temp.gnuplot b/gnuplot/by_temp.gnuplot
new file mode 100644 (file)
index 0000000..020c0b7
--- /dev/null
@@ -0,0 +1,77 @@
+set terminal pngcairo color size 800,600
+#set output 'axes.png'
+set output
+
+set xdata time
+set timefmt "%Y-%m-%d"
+
+set datafile separator ","
+
+#unset border
+#set key outside
+#set key top left horizontal
+
+set grid
+set key outside tmargin center
+
+#set ylabel "°"
+#set ylabel "deg."
+#set ylabel "degrees"
+
+#set format x "%H:%M"
+
+set format x ""
+#set format y "%.2f"
+set yrange [ -0.1 : 0.1 ]
+
+#set arrow 1 from first,3 to last,3 nohead linestyle rgb "#ff0000"
+
+#set multiplot
+set multiplot layout 3,1
+
+set lmargin at screen 0.125
+
+#set linetype 1 lc 'green'
+set linetype 99 lc 'red'
+
+#plot "axes.txt" using 1:2 with lines title "X angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
+
+set ylabel "X degrees"
+plot "/dev/shm/by_temp.pn.18.txt" using 1:2 with lines title 18, \
+"/dev/shm/by_temp.pn.20.txt" using 1:2 with lines title 20, \
+"/dev/shm/by_temp.pn.22.txt" using 1:2 with lines title 22, \
+"/dev/shm/by_temp.pn.24.txt" using 1:2 with lines title 24, \
+"/dev/shm/by_temp.pn.26.txt" using 1:2 with lines title 26, \
+"/dev/shm/by_temp.pn.28.txt" using 1:2 with lines title 28
+# http://gnuplot-surprising.blogspot.com/2011/09/gnuplot-background-image.html
+#'/home/dpavlin/zc/www/logo-color.png' binary filetype=png origin=(0,0)  dx=0.5 dy=0.5 with rgbimage notitle
+
+
+#plot "axes.txt" using 1:3 with lines title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
+
+set tmargin 0
+
+set ylabel "Y degrees"
+plot "/dev/shm/by_temp.pn.18.txt" using 1:3 with lines title 18, \
+"/dev/shm/by_temp.pn.20.txt" using 1:3 with lines title 20, \
+"/dev/shm/by_temp.pn.22.txt" using 1:3 with lines title 22, \
+"/dev/shm/by_temp.pn.24.txt" using 1:3 with lines title 24, \
+"/dev/shm/by_temp.pn.26.txt" using 1:3 with lines title 26, \
+"/dev/shm/by_temp.pn.28.txt" using 1:3 with lines title 28
+#, "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
+
+set tmargin 0
+
+set xlabel "time"
+set format x "%d.%m."
+
+set ylabel "celsius"
+set yrange [ * : * ]
+
+plot "/dev/shm/by_temp.pn.18.txt" using 1:4 with lines title 18, \
+"/dev/shm/by_temp.pn.20.txt" using 1:4 with lines title 20, \
+"/dev/shm/by_temp.pn.22.txt" using 1:4 with lines title 22, \
+"/dev/shm/by_temp.pn.24.txt" using 1:4 with lines title 24, \
+"/dev/shm/by_temp.pn.26.txt" using 1:4 with lines title 26, \
+"/dev/shm/by_temp.pn.28.txt" using 1:4 with lines title 28
+