Subversion Repositories svnkaklik

Rev

Rev 781 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
779 kaklik 1
set terminal png
2
 
3
set key off
4
set grid
5
set angles degrees
6
 
780 kaklik 7
f(x)=I0 * (sin(x))**4 + c
781 kaklik 8
g(x)=I0 * (sin(x) * cos(x))**2 + a
779 kaklik 9
 
781 kaklik 10
 
11
set xlabel "fi[°]"
12
set ylabel "I[-]"
13
 
969 kaklik 14
fit f(x) "./data/Malusuv_zakon/polarizace_vertikalne_stupne.txt" using 1:2 via I0, c
779 kaklik 15
set output "polarizace.png"
969 kaklik 16
plot "./data/Malusuv_zakon/polarizace_vertikalne_stupne.txt" using 1:2 with points, f(x)
779 kaklik 17
 
969 kaklik 18
fit g(x) "./data/Malusuv_zakon/polarizace_horizontalne_stupne.txt" using 1:2 via I0, a
781 kaklik 19
set output "polarizace_horizontalne.png"
969 kaklik 20
plot "./data/Malusuv_zakon/polarizace_horizontalne_stupne.txt" using 1:2 with points, g(x)
779 kaklik 21
 
781 kaklik 22
set output "podelny_rez.png"
23
set xlabel "x[-]"
24
set ylabel "I[-]"
25
plot "podelny_rez.txt" using 1:2 with points
779 kaklik 26
 
969 kaklik 27
set output "pricny_rez.png"
28
set xlabel "x[-]"
29
set ylabel "I[-]"
30
plot "./data/rozlozeni_pole/pricny_rez.txt" using 1:2 with points
31
 
781 kaklik 32
set samples 400
33
set angles radians
34
a=4
35
d=100
36
c=6
37
I0=3
38
 
39
h(x)=I0 * sin(c*x+d) + a
40
 
969 kaklik 41
fit h(x) "./data/stojata_vlna/stojata_vlna_vzdalenost.txt" using 1:2 via a,d,c
781 kaklik 42
set output "stojata_vlna.png"
969 kaklik 43
plot "./data/stojata_vlna/stojata_vlna_vzdalenost.txt" using 1:2 with points, h(x)
781 kaklik 44
 
45
 
46
I0=2
47
 
969 kaklik 48
fit h(x) "./data/stojata_vlna/stojata_vlna_vzdalenost.txt" using 1:3 via a,d,c
781 kaklik 49
set output "stojata_vlna_deska.png"
969 kaklik 50
plot "./data/stojata_vlna/stojata_vlna_vzdalenost.txt" using 1:3 with points, h(x)
781 kaklik 51
 
969 kaklik 52
 
53
 
781 kaklik 54
set output "hrana.png"
969 kaklik 55
plot "./data/difrakce/hrana.txt" using 1:(abs($2)) with points
781 kaklik 56
 
57
set output "pasek.png"
969 kaklik 58
plot "./data/difrakce/pasek.txt" using 1:(abs($2)) with points
781 kaklik 59
 
60
set key under
61
set xlabel "fi[°]"
62
set ylabel "I[-]"
63
set output "sterbina.png"
64
plot "sterbina.txt" using 1:(abs($2)) with points title "40mm", "" using 1:(abs($3)) with points title "60mm"
65