aboutsummaryrefslogtreecommitdiffstats
path: root/206/plots.gp
blob: 54600213d811d4552d39d968fbe6101346cf762d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
set term pngcairo size 1000, 800
set grid

f1(x) = a1*x+b1
fit f1(x) 'ex1.plot' using 1:2:3 yerr via a1, b1
f2(x) = a2 * x
fit f2(x) 'ex2.plot' using 1:2 via a2

set output 'ex1.png'
set title "Зависимость времени прохода волны от расстояния"
set xlabel "L, м"
set ylabel "t, мкc"
set key top left

set xrange[0:0.7]

set label sprintf("A = %.4g\n B =%.4g", a1 / 10e6, b1 / 10e6) at graph 0.2, 0.9 front boxed
plot 	'ex1.plot' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2,	\
	f1(x) title "t(L)" lc rgb "red"


set output 'ex2.png'
set title "Зависимость скорости от корня из температуры"
set xlabel "T^{1/2}, K^{1/2}"
set ylabel "v, м/c"
set key top left

unset xrange
unset label
set label sprintf("A = %.4g", a2) at graph 0.2, 0.9 front boxed
plot 	'ex2.plot' using 1:2 notitle lc 0 pt 1 lw 2,	\
	f2(x) title "v(T^{1/2})" lc rgb "red"


set output 'ex2_0.png'
set title "Зависимость скорости от корня из температуры (проход через 0)"
set xrange[0:19]
replot