increase default yrange to 0.2
[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 set multiplot layout 3,1
31
32 set lmargin at screen 0.125
33
34 #set linetype 1 lc 'green'
35 set linetype 99 lc 'red'
36
37 #plot "axes.txt" using 1:2 with lines title "X angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
38
39 set ylabel "X degrees"
40 plot "axes.txt" using 1:2:(abs($2) < 0.2 ? 1: 99) with lines lc variable notitle
41 # http://gnuplot-surprising.blogspot.com/2011/09/gnuplot-background-image.html
42 #'/home/dpavlin/zc/www/logo-color.png' binary filetype=png origin=(0,0)  dx=0.5 dy=0.5 with rgbimage notitle
43
44
45 #plot "axes.txt" using 1:3 with lines title "Y angle", "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
46
47 set tmargin 0
48
49 set ylabel "Y degrees"
50 plot "axes.txt" using 1:3:(abs($3) < 0.2 ? 2: 99) with lines lc variable notitle
51 #, "" using 1:(3) with dots notitle, "" using 1:(-3) with dots notitle
52
53 set tmargin 0
54
55 set xlabel "time"
56 set format x "%H:%M\n%d.%m."
57
58 set ylabel "celsius"
59 set yrange [ * : * ]
60
61 plot "axes.txt" using 1:4 with lines lc 'blue' notitle
62