Blame | Last modification | View Log | Download
set terminal png
set key under
set grid
set xlabel "Input voltage [V]"
set ylabel "Output voltage [V]"
set output "graf.png"
f(x)=k*x + q
g(x)=a*x + b
fit [-0.9:0.9] f(x) "./zesileni.txt" using 1:2 via k,q
fit [-0.9:0.9] g(x) "./zesileni_inv.txt" using 1:2 via a,b
plot "./zesileni.txt" using 1:2 with points title "Non inverting", f(x) title "Non inverting fit", "./zesileni_inv.txt" using 1:2 with points title "Inverting", g(x) title "Inverting fit"