Tips (Utility, Computer Language, and etc.)
[gnuplot] fitting script
Struggler J.
2018. 1. 11. 02:06
set t pdfcairo enh color
set output 'fit.pdf'
f(x) = a*exp(-x/b)
set log y
set xlab 't'
set ylab 'K'
do for [i=1:30] {
a=300 #적당한 값으로 정해준다.
theta = 0.01*i
input = sprintf('data/K_t%g.txt',theta)
fit[:] f(x) input u 1:2 via a, b
plot input u 1:2 w l lw 2 t '' , f(x) lw 2 t ''
}