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