Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 774 → Rev 776

/dokumenty/skolni/PRA2/GammaSpektra/plot.gp
4,14 → 4,21
set grid
 
f(x)=k*x+q
g(x)=p*x+t
 
fit f(x) "kalibrace.txt" using 1:2 via k, q
 
fit f(x) "kalibrace.txt" using 1:2 via k,q
set output "kalibrace.png"
set xlabel "Číslo kanálu"
set ylabel "Energie [keV]"
plot "kalibrace.txt" using 1:2 with points, f(x)
 
fit g(x) "kalibrace.txt" using ($2):(($3)/($2)) via p,t
set output "Ekalibrace.png"
set xlabel "Energie [keV]"
set ylabel "S [-]"
plot "kalibrace.txt" using 2:($3/$2) with points, g(x)
 
set xrange [0:10]
set output "Cs137_manualne.png"
set xlabel "Pozice okna [V]"
set ylabel "Intenzita [Imp]"
24,12 → 31,15
set ylabel "Intenzita [Imp]"
plot "./data/sum.txt" using (f($1)):2 with points
 
set xrange [0:300]
set output "Am241.png"
plot "./data/Am241.txt" using (f($1)):2 with points
 
set xrange [0:800]
set output "Ba133.png"
plot "./data/Ba133.txt" using (f($1)):2 with points
 
set xrange [0:1800]
set output "Co60.png"
plot "./data/Co60.txt" using (f($1)):2 with points
 
39,13 → 49,13
set output "neznamy.png"
plot "./data/neznamy.txt" using (f($1)):2 with points
 
set output "olovo1.png"
plot "./data/olovo1.txt" using (f($1)):2 with points
set key under
set output "olovo.png"
plot "./data/olovo1.txt" using (f($1)):2 with points title "4,7mm", "./data/olovo2.txt" using (f($1)):2 with points title "9,4mm"
 
set output "olovo2.png"
plot "./data/olovo2.txt" using (f($1)):2 with points
 
set key off
set yrange [0:500]
set output "vsechno.png"
plot "./data/vsechno.txt" using (f($1)):2 with points