aboutsummaryrefslogtreecommitdiffstats
path: root/226/plots.gp
diff options
context:
space:
mode:
Diffstat (limited to '226/plots.gp')
-rw-r--r--226/plots.gp24
1 files changed, 24 insertions, 0 deletions
diff --git a/226/plots.gp b/226/plots.gp
new file mode 100644
index 0000000..853d03d
--- /dev/null
+++ b/226/plots.gp
@@ -0,0 +1,24 @@
+set term pngcairo size 2400, 2000 font "Arial,30"
+set grid lw 4
+
+f1(x) = a1*x + b1
+f2(x) = a2*x + b2
+
+fit f1(x) 'T(U).plot' using 1:2:3 yerr via a1,b1
+a2=a1
+fit f2(x) 'Tv(U).plot' using 1:2:3 yerr via a2,b2
+
+set output 'plot.png'
+set title "Зависимость температур термоэлектронов от напряжения накала"
+set xlabel "U, В"
+set ylabel "T, К"
+set key top left
+
+set xrange[2.09:3.01]
+
+plot 'T(U).plot' using 1:2:3 with yerrorbars title "Расчёт по программе" lc rgb("blue") pt 2 lw 5, \
+ f1(x) lc rgb "red" lw 3 title "Расчёт по программе", \
+ 'Tv(U).plot' using 1:2:3 with yerrorbars title "расчёт по v_{нв}" lc rgb("orange") pt 3 lw 5, \
+ f2(x) lc rgb "green" lw 3 title "расчёт по v_{нв}"
+#'T(U).plot' with lines smooth csplines lc rgb "red" lw 3 title "Расчёт по ", \
+#'Tv(U).plot' with lines smooth csplines lc rgb "green" lw 3 title "Расчёт по v_{нв}"