From 1de862c5e2ac6e2baa76daf9fbe6b64050da12fc Mon Sep 17 00:00:00 2001
From: Nao Pross <np@0hm.ch>
Date: Tue, 21 Dec 2021 00:32:06 +0100
Subject: Add more data for QAM, fix colormap

---
 doc/thesis/figures/tikz/hardware.tex | 84 ++++++++++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)
 create mode 100644 doc/thesis/figures/tikz/hardware.tex

(limited to 'doc/thesis/figures/tikz/hardware.tex')

diff --git a/doc/thesis/figures/tikz/hardware.tex b/doc/thesis/figures/tikz/hardware.tex
new file mode 100644
index 0000000..d13926b
--- /dev/null
+++ b/doc/thesis/figures/tikz/hardware.tex
@@ -0,0 +1,84 @@
+% vim: set ts=2 sw=2 noet:
+
+\newcommand{\makeplot}[5]{%
+	\hfill
+	\begin{tikzpicture}
+		\begin{axis}[
+				width  = {\linewidth / 3.3},
+				height = {\linewidth / 3.3},
+				grid = major,
+				xmin = {-#4}, xmax = {#4},
+				ymin = {-#4}, ymax = {#4},
+				colormap name=viridis,
+				#5
+			]
+
+			\addplot[only marks, scatter, point meta = \thisrow{samplenr}]
+				table [x index = #2, y index = #3] {#1};
+		\end{axis}
+	\end{tikzpicture}
+	\hfill
+}
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{0}{1}{.25}{
+	ylabel = {Channel with ISI},
+	yticklabel style = {
+		text width = 3em,
+		align = right,
+	},
+	title = {QPSK LOS, Indoors (Lab)},
+}
+%
+\makeplot{figures/data/qpsk_hw_lab.dat}{0}{1}{.25}{
+	title = {TODO},
+}
+%
+\makeplot{figures/data/qam_hw_lab.dat}{0}{1}{2}{
+	title = {QAM LOS, Indoors (Lab)},
+}
+\newline
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{2}{3}{.25}{%
+	ylabel = {Synchronized},
+	yticklabel style = {
+		text width = 3em,
+		align = right,
+	},
+}
+\makeplot{figures/data/qpsk_hw_lab.dat}{2}{3}{.25}{}
+\makeplot{figures/data/qam_hw_lab.dat}{2}{3}{2}{}
+\newline
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{4}{5}{2}{%
+	ylabel = {Equalized},
+	yticklabel style = {
+		text width = 3em,
+		align = right,
+	},
+}
+\makeplot{figures/data/qpsk_hw_lab.dat}{4}{5}{2}{}
+\makeplot{figures/data/qam_hw_lab.dat}{4}{5}{2}{}
+\newline
+
+% -------------------------------------------------------------------
+
+\noindent
+\makeplot{figures/data/qpsk_hw_lab.dat}{6}{7}{2}{%
+	ylabel = {Locked},
+	yticklabel style = {
+		text width = 3em,
+		align = right,
+	},
+}
+\makeplot{figures/data/qpsk_hw_lab.dat}{6}{7}{2}{}
+\makeplot{figures/data/qam_hw_lab.dat}{6}{7}{2}{}
+\newline
-- 
cgit v1.2.1

