X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnuplot%2Ftemplate.gnuplot;h=b472df4e34f74929bd7ba2170f2eb96fe6c15d68;hb=8898d8986b3111d88968bb3da4a88c6de5c47a65;hp=0a8e7c62701c4477e341064ffa57be9eb753af4f;hpb=ae8c60eb03dee082b77eeef6853fd45648342666;p=zc diff --git a/gnuplot/template.gnuplot b/gnuplot/template.gnuplot index 0a8e7c6..b472df4 100644 --- a/gnuplot/template.gnuplot +++ b/gnuplot/template.gnuplot @@ -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 + +}