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
39
40
41
42
43
44
45
46
47
48
|
set term pngcairo size 1000, 800
set tmargin at screen 0.95
f1(x) = a1*x+b1
f2(x) = a2*x+b2
f3(x) = a3*x+b3
set output 'plot_mnk.png'
set label "Графики вольтамперных характеристик проводов разного диаметра" at graph 0.5, graph 1.025 center
set xlabel "U, В"
set ylabel "I, А"
set xrange[0:1]
set yrange[0:0.1]
fit f1(x) 'plot_0.5_0.00015.data' using 1:2:3 yerr via a1, b1
fit f2(x) 'plot_0.5_0.00025.data' using 1:2:3 yerr via a2, b2
fit f3(x) 'plot_0.5_4e-04.data' using 1:2:3 yerr via a3, b3
plot \
'plot_0.5_0.00015.data' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \
'plot_0.5_0.00025.data' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \
'plot_0.5_4e-04.data' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \
f1(x) title "d=0.15 * 10^{-3}" lc rgb "red", \
f2(x) title "d=0.25 * 10^{-3}" lc rgb "green", \
f3(x) title "d=0.4 * 10^{-3}" lc rgb "blue"
set output 'plot_rs.png'
unset label
set label "График зависимости R от 1/S сечения" at graph 0.5, graph 1.025 center
unset xrange
unset yrange
set xlabel "S^{-1}, м^{-2}"
set ylabel "R, Ом"
fit f1(x) 'plot_r_1s.data' using 1:2:3 yerr via a1, b1
plot 'plot_r_1s.data' using 1:2:3 with yerrorbars notitle lc rgb "red" pt 1 lw 2, \
f1(x) title "R" lc 0
set out
set output 'plot_diods.png'
unset label
set label "Вольтамперная характеристика красного и синего светодиодов" at graph 0.5, graph 1.025 center
set xlabel "U, В"
set ylabel "Y, A"
set xrange[1:2]
plot 'plot_red.data' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \
'plot_green.data' using 1:2:3 with yerrorbars notitle lc 0 pt 1 lw 2, \
'plot_red.data' with lines lc rgb "red" title "I(U) красный", \
'plot_green.data' with lines lc rgb "green" title "I(U) зелёный"
|