From 52d8f03d0657df15cf0fc320d03aea76d17ae4f8 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Thu, 10 Oct 2024 17:17:34 +0300 Subject: formatted output better --- plots.gp | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'plots.gp') diff --git a/plots.gp b/plots.gp index 93cd408..b241801 100644 --- a/plots.gp +++ b/plots.gp @@ -1,19 +1,26 @@ +f(x) = a*x+b + set term png -set output 'T2_timer.png' set grid +set output 'T2_timer.png' set xlabel "m, ед." set ylabel "T^2, c^2" -plot 'outputT2_timer.data' using 1:2:3 with yerrorbars title "", 'outputT2_timer.data' with line title "T^2(m)" -set term png +fit f(x) 'outputT2_timer.data' using 1:2:3 via a,b +plot 'outputT2_timer.data' using 1:2:3 with yerrorbars title "",\ + 'outputT2_timer.data' with line title "T^2(m)",\ + f(x) title "ax+b" set output 'T2_photo.png' -set grid set xlabel "m, ед." set ylabel "T^2, c^2" -plot 'outputT2_photo.data' using 1:2:3 with yerrorbars title "", 'outputT2_photo.data' with line title "T^2(m)" -set term png +fit f(x) 'outputT2_photo.data' using 1:2:3 via a,b +plot 'outputT2_photo.data' using 1:2:3 with yerrorbars title "",\ + 'outputT2_photo.data' with line title "T^2(m)",\ + f(x) title "ax+b" set output 'U.png' -set grid set xlabel "U, В" set ylabel "w, 1/c" set yrange[0:250] -plot 'outputU.data' using 1:2:3:4 with xyerrorbars title "", 'outputU.data' with line title "w(U)" +fit f(x) 'outputU.data' using 1:2:3 via a,b +plot 'outputU.data' using 1:2:3:4 with xyerrorbars title "",\ + 'outputU.data' with line title "w(U)",\ + f(x) title "ax+b" -- cgit v1.2.3-70-g09d2