Subversion Repositories svnkaklik

Rev

Rev 780 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

set terminal png

set key off
set grid
set angles degrees

f(x)=I0 * (sin(x))**4 + c
g(x)=I0 * (sin(x) * cos(x))**2 + a


set xlabel "fi[°]"
set ylabel "I[-]"

fit f(x) "./data/polarizace_vertikalne_stupne.txt" using 1:2 via I0, c
set output "polarizace.png"
plot "./data/polarizace_vertikalne_stupne.txt" using 1:2 with points, f(x)

fit g(x) "./data/polarizace_horizontalne_stupne.txt" using 1:2 via I0, a
set output "polarizace_horizontalne.png"
plot "./data/polarizace_horizontalne_stupne.txt" using 1:2 with points, g(x)

set output "podelny_rez.png"
set xlabel "x[-]"
set ylabel "I[-]"
plot "podelny_rez.txt" using 1:2 with points

set samples 400
set angles radians
a=4
d=100
c=6
I0=3

h(x)=I0 * sin(c*x+d) + a

fit h(x) "./data/stojata_vlna_vzdalenost.txt" using 1:2 via a,d,c
set output "stojata_vlna.png"
plot "./data/stojata_vlna_vzdalenost.txt" using 1:2 with points, h(x)


I0=2

fit h(x) "./data/stojata_vlna_vzdalenost.txt" using 1:3 via a,d,c
set output "stojata_vlna_deska.png"
plot "./data/stojata_vlna_vzdalenost.txt" using 1:3 with points, h(x)

set output "hrana.png"
plot "./data/hrana.txt" using 1:(abs($2)) with points

set output "pasek.png"
plot "./data/pasek.txt" using 1:(abs($2)) with points

set key under
set xlabel "fi[°]"
set ylabel "I[-]"
set output "sterbina.png"
plot "sterbina.txt" using 1:(abs($2)) with points title "40mm", "" using 1:(abs($3)) with points title "60mm"