aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/figures/tikz/qam-constellation.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/thesis/figures/tikz/qam-constellation.tex')
-rw-r--r--doc/thesis/figures/tikz/qam-constellation.tex25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/thesis/figures/tikz/qam-constellation.tex b/doc/thesis/figures/tikz/qam-constellation.tex
new file mode 100644
index 0000000..e9a7778
--- /dev/null
+++ b/doc/thesis/figures/tikz/qam-constellation.tex
@@ -0,0 +1,25 @@
+% vim: set ts=2 sw=2 noet:
+\begin{tikzpicture}[
+ axis/.style = {
+ thick, -latex, black,
+ },
+ star/.style = {
+ draw = black, thick, fill = red!50,
+ circle, outer sep = 1mm, inner sep = 0,
+ minimum size = 1.5mm,
+ },
+ ]
+ \draw[axis] (-25mm,0) to (25mm,0) node[right] {\(\phi_i\)};
+ \draw[axis] (0,-25mm) to (0,25mm) node[above] {\(\phi_q\)};
+
+ \foreach \i in {0,1,...,3}{
+ \foreach \q in {0,1,...,3}{
+ \node[star] (s\i\q) at ({\i*10mm - 15mm},{\q*10mm - 15mm}) {};
+ }
+ }
+
+ \foreach \i/\l in {0/00,1/01,2/11,3/10}{
+ \node[lightgray, below = 3mm] at (s\i0) {\texttt{\l}};
+ \node[lightgray, left = 2mm] at (s0\i) {\texttt{\l}};
+ }
+\end{tikzpicture}