remove explicit voltage ticks
[zc] / gnuplot / template.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 %H:%M:%S"
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.2 : 0.2 ]
26
27 #set arrow 1 from first,3 to last,3 nohead linestyle rgb "#ff0000"
28
29 #set multiplot
30 if ( voltage ) {
31         set multiplot layout 4,1
32 } else {
33         set multiplot layout 3,1
34 }
35
36 set lmargin at screen 0.125
37
38 #set linetype 1 lc 'green'
39 set linetype 99 lc 'red'
40
41 #plot "axes.txt" using 1:2 with lines title "X angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
42
43 set ylabel "X degrees"
44 plot "axes.txt" using 1:2:(abs($2) < 0.2 ? 1: 99) with lines lc variable notitle
45 # http://gnuplot-surprising.blogspot.com/2011/09/gnuplot-background-image.html
46 #'/home/dpavlin/zc/www/logo-color.png' binary filetype=png origin=(0,0)  dx=0.5 dy=0.5 with rgbimage notitle
47
48
49 #plot "axes.txt" using 1:3 with lines title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
50
51 set tmargin 0
52
53 set ylabel "Y degrees"
54 plot "axes.txt" using 1:3:(abs($3) < 0.2 ? 2: 99) with lines lc variable notitle
55 #, "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
56
57 set tmargin 0
58
59 if ( ! voltage ) {
60         set xlabel "time"
61         set format x "%H:%M\n%d.%m."
62 }
63
64 set ylabel "celsius"
65 set yrange [ * : * ]
66
67 plot "axes.txt" using 1:4 with lines lc 'blue' notitle
68
69 if ( voltage ) {
70         set xlabel "time"
71         set format x "%H:%M\n%d.%m."
72
73         set ylabel "V"
74         #set ytics 0.1 
75
76         plot "axes.txt" using 1:5 with dots lc 'red' notitle
77
78 }