1 |
#set terminal png |
1 |
set terminal png |
2 |
set xlabel "time[s]" |
2 |
set xlabel "time[s]" |
3 |
set ylabel "acceleration [g]" |
3 |
set ylabel "Magnetic field [-]" |
4 |
#set yrange [-1:1] |
4 |
#set yrange [-1:1] |
5 |
set autoscale y |
5 |
set autoscale y |
6 |
|
6 |
|
7 |
|
7 |
|
8 |
#plot data transformed to G units. (3,3V/1024 * 0.8V/G) |
8 |
#plot data transformed to G units. (3,3V/1024 * 0.8V/G) |
9 |
k=3.3/1024.0*0.8 # sensitivity constant |
9 |
k=3.3/1024.0*0.8 # sensitivity constant |
10 |
zero_gravity=512.0 |
10 |
zero_gravity=512.0 |
11 |
|
11 |
|
12 |
set output "sobeslav_tabor.png" |
12 |
set output "mereni.png" |
13 |
plot "tabor.txt" using ($1) title "X", "" using ($2) title "Y", "" using ($3) title "Z" |
13 |
plot "tabor.txt" using ($1) title "X", "" using ($2) title "Y", "" using ($3) title "Z" |
14 |
pause 1 |
14 |
pause 1 |
15 |
reread |
15 |
reread |