#set arrow 1 from first,3 to last,3 nohead linestyle rgb "#ff0000"
#set multiplot
-set multiplot layout 3,1
+if ( voltage ) {
+ set multiplot layout 4,1
+} else {
+ set multiplot layout 3,1
+}
set lmargin at screen 0.125
set tmargin 0
-set xlabel "time"
-set format x "%H:%M\n%d.%m."
+if ( ! voltage ) {
+ set xlabel "time"
+ set format x "%H:%M\n%d.%m."
+}
set ylabel "celsius"
set yrange [ * : * ]
plot "axes.txt" using 1:4 with lines lc 'blue' notitle
+if ( voltage ) {
+ set xlabel "time"
+ set format x "%H:%M\n%d.%m."
+
+ set ylabel "V"
+ #set ytics 0.1
+
+ plot "axes.txt" using 1:5 with dots lc 'red' notitle
+
+}