remove explicit voltage ticks
[zc] / gnuplot / template.gnuplot
index 0a8e7c6..b472df4 100644 (file)
@@ -27,7 +27,11 @@ set yrange [ -0.2 : 0.2 ]
 #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
 
@@ -52,11 +56,23 @@ plot "axes.txt" using 1:3:(abs($3) < 0.2 ? 2: 99) with lines lc variable notitle
 
 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
+
+}