1 |
set terminal png |
1 |
set terminal png |
2 |
set output "profile.png" |
2 |
set output "profile.png" |
3 |
|
3 |
|
4 |
set yrange [0:300] |
4 |
set yrange [0:300] |
5 |
set xrange [0:1200] |
5 |
set xrange [0:1200] |
6 |
|
6 |
|
7 |
set key under |
7 |
set key under |
8 |
set xlabel "Time [s]" |
8 |
set xlabel "Time [s]" |
9 |
set ylabel "Temperature [°C]" |
9 |
set ylabel "Temperature [°C]" |
10 |
|
10 |
|
11 |
f(x)= k*x + q |
11 |
f(x)= k*x + q |
12 |
fit [0:380] f(x) "data.txt" using 1:4 via k,q |
12 |
fit [0:380] f(x) "data.txt" using 1:4 via k,q |
13 |
|
13 |
|
14 |
a=k |
14 |
a=k |
15 |
b=q |
15 |
b=q |
16 |
|
16 |
|
17 |
g(x)= a*x + b |
17 |
g(x)= a*x + b |
18 |
fit [479:585] g(x) "data.txt" using 1:4 via a,b |
18 |
fit [479:585] g(x) "data.txt" using 1:4 via a,b |
19 |
|
19 |
|
20 |
|
20 |
|
21 |
plot "data.txt" using 1:4 with points title "measured points", f(x), g(x) |
21 |
plot "data.txt" using 1:4 with points title "measured points", f(x), g(x) |