Go to most recent revision | Blame | Last modification | View Log | Download
cd 'C:\Documents and Settings\root'
#set table 'jesteslabsi.txt';
#plot 'jesteslabsi.avs' binary format='%4uint8' record=100x100 skip=8 using 2;
#unset table;
#set output 'slabsi.png'
set terminal png
#set hidden3d;
#splot 'jesteslabsi.txt' with lines;
#unset output;
set output 'slabejsi.png';
#plot 'jesteslabsi.txt' every :::30::35 using 1:3;
f(x)=a*exp(-(x-x0)**2/(2*w**2));
a=200;
x0=25;
w=10;
fit f(x) 'jesteslabsi.txt' every :::40::50 using 1:3 via a,x0,w;
plot f(x) w lines linewidth 3, 'jesteslabsi.txt' every :::40::50 using 1:3;
unset output;
clear;
set output 'slabejsi2.png';
fit f(x) 'jesteslabsi.txt' every ::35::40 using 2:3 via a,x0,w;
plot f(x) w lines linewidth 3, 'jesteslabsi.txt' every ::35::40 using 2:3;
unset output;