diff --git a/ex-6/plot.py b/ex-6/plot.py index 90fc7bc..5ab7515 100755 --- a/ex-6/plot.py +++ b/ex-6/plot.py @@ -2,15 +2,14 @@ from pylab import * import sys -import matplotlib.pyplot as plt -plt.rcParams['font.size'] = 20 +rcParams['font.size'] = 12 a, b, f = loadtxt(sys.stdin, unpack=True) -suptitle('Fraunhofer diffraction') title(sys.argv[1] if len(sys.argv) > 1 else "", loc='right') -hist(a, np.insert(b, 0, a[0]), weights=f/sum(f), - color='#dbbf0d', edgecolor='#595856', linewidth=0.5) +hist(a, np.insert(b, 0, a[0]), weights=100*f/sum(f), + histtype='stepfilled', color='#e3c5ca', edgecolor='#92182b') xlabel(r'$\theta$ (radians)') ylabel(r'$I(\theta)$ (a.u.)') +tight_layout() show() diff --git a/notes/images/deco-fft-0.05.pdf b/notes/images/deco-fft-0.05.pdf deleted file mode 100644 index f419f8f..0000000 Binary files a/notes/images/deco-fft-0.05.pdf and /dev/null differ diff --git a/notes/images/deco-fft-0.5.pdf b/notes/images/deco-fft-0.5.pdf deleted file mode 100644 index f419f8f..0000000 Binary files a/notes/images/deco-fft-0.5.pdf and /dev/null differ diff --git a/notes/images/deco-fft-1.pdf b/notes/images/deco-fft-1.pdf deleted file mode 100644 index bd84ac6..0000000 Binary files a/notes/images/deco-fft-1.pdf and /dev/null differ diff --git a/notes/images/deco-rl-0.05.pdf b/notes/images/deco-rl-0.05.pdf deleted file mode 100644 index 3b9a188..0000000 Binary files a/notes/images/deco-rl-0.05.pdf and /dev/null differ diff --git a/notes/images/deco-rl-0.5.pdf b/notes/images/deco-rl-0.5.pdf deleted file mode 100644 index 518d0c3..0000000 Binary files a/notes/images/deco-rl-0.5.pdf and /dev/null differ diff --git a/notes/images/deco-rl-1.pdf b/notes/images/deco-rl-1.pdf deleted file mode 100644 index ad69f14..0000000 Binary files a/notes/images/deco-rl-1.pdf and /dev/null differ diff --git a/notes/images/fraun-conv-0.05.pdf b/notes/images/fraun-conv-0.05.pdf new file mode 100644 index 0000000..eb98e21 Binary files /dev/null and b/notes/images/fraun-conv-0.05.pdf differ diff --git a/notes/images/fraun-conv-0.5.pdf b/notes/images/fraun-conv-0.5.pdf new file mode 100644 index 0000000..850423b Binary files /dev/null and b/notes/images/fraun-conv-0.5.pdf differ diff --git a/notes/images/fraun-conv-1.pdf b/notes/images/fraun-conv-1.pdf new file mode 100644 index 0000000..e1f5590 Binary files /dev/null and b/notes/images/fraun-conv-1.pdf differ diff --git a/notes/images/fraun-fft-0.05.pdf b/notes/images/fraun-fft-0.05.pdf new file mode 100644 index 0000000..9a20f85 Binary files /dev/null and b/notes/images/fraun-fft-0.05.pdf differ diff --git a/notes/images/fraun-fft-0.5.pdf b/notes/images/fraun-fft-0.5.pdf new file mode 100644 index 0000000..0127832 Binary files /dev/null and b/notes/images/fraun-fft-0.5.pdf differ diff --git a/notes/images/poisson-fft.pdf b/notes/images/fraun-fft-1.pdf similarity index 60% rename from notes/images/poisson-fft.pdf rename to notes/images/fraun-fft-1.pdf index 4ef015c..c2f6f3e 100644 Binary files a/notes/images/poisson-fft.pdf and b/notes/images/fraun-fft-1.pdf differ diff --git a/notes/images/poisson-rl.pdf b/notes/images/fraun-noise-fft.pdf similarity index 62% rename from notes/images/poisson-rl.pdf rename to notes/images/fraun-noise-fft.pdf index f713a47..33a1cbd 100644 Binary files a/notes/images/poisson-rl.pdf and b/notes/images/fraun-noise-fft.pdf differ diff --git a/notes/images/6_original.pdf b/notes/images/fraun-noise-rl.pdf similarity index 63% rename from notes/images/6_original.pdf rename to notes/images/fraun-noise-rl.pdf index 132b1d6..4335b58 100644 Binary files a/notes/images/6_original.pdf and b/notes/images/fraun-noise-rl.pdf differ diff --git a/notes/images/fraun-original.pdf b/notes/images/fraun-original.pdf new file mode 100644 index 0000000..6fa8de8 Binary files /dev/null and b/notes/images/fraun-original.pdf differ diff --git a/notes/images/fraun-rl-0.05.pdf b/notes/images/fraun-rl-0.05.pdf new file mode 100644 index 0000000..16133d1 Binary files /dev/null and b/notes/images/fraun-rl-0.05.pdf differ diff --git a/notes/images/fraun-rl-0.5.pdf b/notes/images/fraun-rl-0.5.pdf new file mode 100644 index 0000000..429dee8 Binary files /dev/null and b/notes/images/fraun-rl-0.5.pdf differ diff --git a/notes/images/fraun-rl-1.pdf b/notes/images/fraun-rl-1.pdf new file mode 100644 index 0000000..24d726c Binary files /dev/null and b/notes/images/fraun-rl-1.pdf differ diff --git a/notes/images/noise-0.05.pdf b/notes/images/noise-0.05.pdf deleted file mode 100644 index f0f0371..0000000 Binary files a/notes/images/noise-0.05.pdf and /dev/null differ diff --git a/notes/images/noise-0.5.pdf b/notes/images/noise-0.5.pdf deleted file mode 100644 index 0bf6d9d..0000000 Binary files a/notes/images/noise-0.5.pdf and /dev/null differ diff --git a/notes/images/noise-1.pdf b/notes/images/noise-1.pdf deleted file mode 100644 index f1e0bab..0000000 Binary files a/notes/images/noise-1.pdf and /dev/null differ diff --git a/notes/sections/6.md b/notes/sections/6.md index 304b20d..e1a148f 100644 --- a/notes/sections/6.md +++ b/notes/sections/6.md @@ -1,6 +1,6 @@ # Exercise 6 -## Generating points according to Fraunhofer diffraction +## Generating points according to Fraunhöfer diffraction The diffraction of a plane wave thorough a round slit must be simulated by generating $N =$ 50'000 points according to the intensity distribution @@ -16,7 +16,7 @@ where: - $E$ is the electric field amplitude, default set $E = \SI{1e4}{V/m}$; - $a$ is the radius of the slit aperture, default set $a = \SI{0.01}{m}$; - $\theta$ is the angle specified in @fig:slit; -- $J_1$ is the Bessel function of first order; +- $J_1$ is a Bessel function of first kind; - $k$ is the wavenumber, default set $k = \SI{1e-4}{m^{-1}}$; - $L$ default set $L = \SI{1}{m}$. @@ -46,7 +46,7 @@ where: \node [cyclamen] at (5.5,-0.4) {$\theta$}; \node [rotate=-90] at (10.2,0) {screen}; \end{tikzpicture} -\caption{Fraunhofer diffraction.}\label{fig:slit} +\caption{Fraunhöfer diffraction.}\label{fig:slit} } \end{figure} @@ -88,8 +88,7 @@ omitted: The sample was binned and stored in a histogram with a customizable number $n$ of bins default set $n = 150$. In @fig:original an example is shown. -![Example of sorted points according to - $I(\theta)$.](images/6_original.pdf){#fig:original} +![Example of an intensity histogram.](images/fraun-original.pdf){#fig:original} ## Gaussian noise convolution {#sec:convolution} @@ -417,41 +416,41 @@ On the other hand, the Richardson-Lucy routine is less affected by this further complication being already inaccurate in itself.