Blame | Last modification | View Log | Download
set table 'gauss4.txt'splot 'gauss4.avs' binary format='%4uint8' record=180x180 skip=8 using 2unset tableset xlabel 'pixels'set ylabel 'pixels'set zlabel 'intensity' rotate by 90;set hidden3dunset keyset terminal pngset output 'gauss4_3d.png'splot 'gauss4.txt' with linesunset outputunset keyset samples 5000set xlabel 'pixels'set ylabel 'intensity'f(x)=a*exp(-(x-x0)**2/(2*w**2))a=100x0=90w=30fit f(x) 'gauss4.txt' every ::90::100 using 2:3 via a,x0,wset output 'gauss4_fit1.png'plot f(x) w lines linewidth 3, 'gauss4.txt' every ::90::100 using 2:3unset outputunset keyf(x)=a*exp(-(x-x0)**2/(2*w**2))a=200x0=80w=20fit f(x) 'gauss4.txt' every :::90::100 using 1:3 via a,x0,wset output 'gauss4_fit2.png'plot f(x) w lines linewidth 3, 'gauss4.txt' every :::90::100 using 1:3unset output