aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/figures/tikz/multipath-frequency-response-plots.tex
blob: 65cd2ca2d31a703e509921d13611ee5eafee4830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% vim: set ts=2 sw=2 noet:
\begin{tikzpicture}
	\begin{loglogaxis}[
			width = .6\linewidth, height = 5cm,
			ylabel = {Response \(|H(f, t)|\)},
			xlabel = {Frequency \(f\)/Hz},
			xlabel near ticks,
			ylabel near ticks,
			ytick = \empty,
			smooth,
		]

		\addplot[solid, magenta] table[x index = 0, y index = 2]
			{figures/data/multipath_frequency_response.dat};
		% \addlegendentry{Multipath}

		% \addplot[dashed, thick, black] table[x index = 0, y index = 1]
		% 	{figures/data/multipath_frequency_response.dat};
		% \addlegendentry{Linear}

	\end{loglogaxis}
\end{tikzpicture}
\hskip 5mm
\begin{tikzpicture}[
		decorated/.style = {
			solid, thick,
			postaction={decorate},
			decoration={markings,
				mark=at position 0.35 with {\arrow{stealth}},
				mark=at position 0.65 with {\arrow{stealth}}},
		},
	]
	\begin{axis}[
			width = 5cm, height = 5cm,
			ylabel = {\(\Im{H(f,t)}\)},
			xlabel = {\(\Re{H(f,t)}\)},
			xlabel near ticks,
			ylabel near ticks,
			grid = major,
			xmin = -1.2, xmax = 1.2,
			ymin = -1.2, ymax = 1.2,
		]

		\addplot[decorated, red] table[x index = 3, y index = 4]
			{figures/data/multipath_frequency_response.dat}
			node[pos = 0, circle, fill = white, draw, inner sep = 1pt] {}
			node[pos = .2, outer sep = 1pt, inner sep = 0pt] (A) {}
			node[pos = 1, circle, fill = white, draw, inner sep = 1pt] {};

		\addplot[decorated, blue] table[x index = 5, y index = 6]
			{figures/data/multipath_frequency_response.dat}
			node[pos = 0, circle, fill = white, draw, inner sep = 1pt] {}
			node[pos = .2, outer sep = 1pt, inner sep = 0pt] (B) {}
			node[pos = 1, circle, fill = white, draw, inner sep = 1pt] {};

		\addplot[decorated, magenta] table[x index = 7, y index = 8]
			{figures/data/multipath_frequency_response.dat}
			node[pos = 0, circle, fill = white, draw, inner sep = 1pt] {}
			node[pos = 0, below right, font = \tiny] {2 MHz}
			node[pos = .2, outer sep = 1pt, inner sep = 0pt] (C) {}
			node[pos = 1, circle, fill = white, draw, inner sep = 1pt] {}
			node[pos = 1, above left, font = \tiny] {2.5 MHz};

		\node[outer sep = 2pt, inner sep = 0pt] (O) at (0,0) {};
		\draw[-latex, red!50!white] (O) -- (A);
		\draw[-latex, blue!50!white] (O) -- (B);
		\draw[-latex, magenta!50!white] (O) -- (C);

	\end{axis}
\end{tikzpicture}