From 4a53ab2cfb0dceb10d8e0b52341b3d67d8e0b43b Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Wed, 25 Jan 2023 02:55:02 +0100 Subject: [PATCH] Changed plot domain of 8dB SNR plots; Moved legends to right --- .../midterm/sections/examination_results.tex | 88 ++++++++++++------- 1 file changed, 56 insertions(+), 32 deletions(-) diff --git a/latex/presentations/midterm/sections/examination_results.tex b/latex/presentations/midterm/sections/examination_results.tex index 89f696e..1abfa8e 100644 --- a/latex/presentations/midterm/sections/examination_results.tex +++ b/latex/presentations/midterm/sections/examination_results.tex @@ -34,16 +34,19 @@ ymax=1.2, ymin=0.8e-4, xmin=0.9, xmax=5.6, ] - \addplot table [x=SNR, y=BER, - col sep=comma, discard if not={gamma}{0.15}] + \addplot table [x=SNR, y=BER, col sep=comma, + discard if not={gamma}{0.15}, + discard if gt={SNR}{5.5},] {res/proximal/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{$\gamma = 0.15$} - \addplot table [x=SNR, y=BER, - col sep=comma, discard if not={gamma}{0.01}] + \addplot table [x=SNR, y=BER, col sep=comma, + discard if not={gamma}{0.01}, + discard if gt={SNR}{5.5},] {res/proximal/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{$\gamma = 0.01$} - \addplot table [x=SNR, y=BER, - col sep=comma, discard if not={gamma}{0.05}] + \addplot table [x=SNR, y=BER, col sep=comma, + discard if not={gamma}{0.05}, + discard if gt={SNR}{5.5},] {res/proximal/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{$\gamma = 0.05$} \end{axis} @@ -286,7 +289,7 @@ \addlegendentry{$\gamma = 0.15$} \end{axis} \end{tikzpicture} - \caption{BCH code with $n=31, k=26$} + \caption{BCH code with $n=31, k=26$\\[2\baselineskip]} \end{subfigure}% \begin{subfigure}[c]{0.33\textwidth} \centering @@ -819,8 +822,10 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d grid=both, xlabel={$E_b / N_0$}, ylabel={FER}, ymode=log, - legend columns=2, - legend style={at={(0.5,-0.45)},anchor=south}, + legend columns=1, + legend pos=outer north east, + %legend columns=2, + %legend style={at={(0.5,-0.45)},anchor=south}, ymax=1.5, ymin=3e-8, ] @@ -852,7 +857,7 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d \addlegendentry{hybrid, $\gamma = 0.05$} \end{axis} \end{tikzpicture} - \caption{$\left( 3, 6 \right)$-regular LDPC code with $n=96, k=48$\\ \cite[\text{96.3.965}]{mackay_enc}} + \caption{$\left( 3, 6 \right)$-regular LDPC code with $n=96, k=48$ \cite[\text{96.3.965}]{mackay_enc}} \end{subfigure}% \begin{subfigure}[c]{0.33\textwidth} \centering @@ -861,40 +866,53 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d grid=both, xlabel={$E_b / N_0$}, ylabel={FER}, ymode=log, - legend columns=2, - legend style={at={(0.5,-0.45)},anchor=south}, + legend columns=1, + legend pos=outer north east, + xmin=0.5, xmax=6, xtick={1, ..., 5}, ymax=1.5, ymin=3e-8, ] - \addplot[ForestGreen, mark=*, solid] - table [x=SNR, y=FER, col sep=comma, discard if not={gamma}{0.15}] + \addplot[ForestGreen, mark=*, solid,] + table [x=SNR, y=FER, col sep=comma, + discard if not={gamma}{0.15}, + discard if gt={SNR}{5.5},] {res/proximal/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{proximal, $\gamma = 0.15$} \addplot[Emerald, mark=triangle, densely dashed] - table [x=SNR, y=FER, col sep=comma, discard if not={gamma}{0.15}] + table [x=SNR, y=FER, col sep=comma, + discard if not={gamma}{0.15}, + discard if gt={SNR}{5.5},] {res/hybrid/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{hybrid, $\gamma = 0.15$} \addplot[NavyBlue, mark=*, solid] - table [x=SNR, y=FER, col sep=comma, discard if not={gamma}{0.01}] + table [x=SNR, y=FER, col sep=comma, + discard if not={gamma}{0.01}, + discard if gt={SNR}{5.5},] {res/proximal/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{proximal, $\gamma = 0.01$} \addplot[RoyalPurple, mark=triangle, densely dashed] - table [x=SNR, y=FER, col sep=comma, discard if not={gamma}{0.01}] + table [x=SNR, y=FER, col sep=comma, + discard if not={gamma}{0.01}, + discard if gt={SNR}{5.5},] {res/hybrid/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{hybrid, $\gamma = 0.01$} \addplot[RedOrange, mark=*, solid] - table [x=SNR, y=FER, col sep=comma, discard if not={gamma}{0.05}] + table [x=SNR, y=FER, col sep=comma, + discard if not={gamma}{0.05}, + discard if gt={SNR}{5.5},] {res/proximal/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{proximal, $\gamma = 0.05$} \addplot[red, mark=triangle, densely dashed] - table [x=SNR, y=FER, col sep=comma, discard if not={gamma}{0.05}] + table [x=SNR, y=FER, col sep=comma, + discard if not={gamma}{0.05}, + discard if gt={SNR}{5.5},] {res/hybrid/2d_ber_fer_dfr_20433484.csv}; \addlegendentry{hybrid, $\gamma = 0.05$} \end{axis} \end{tikzpicture} - \caption{$\left( 3, 6 \right)$-regular LDPC code with $n=204, k=102$\\ \cite[\text{204.33.484}]{mackay_enc}} + \caption{$\left( 3, 6 \right)$-regular LDPC code with $n=204, k=102$ \cite[\text{204.33.484}]{mackay_enc}} \end{subfigure}% \begin{subfigure}[c]{0.33\textwidth} \centering @@ -903,8 +921,10 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d grid=both, xlabel={$E_b / N_0$}, ylabel={FER}, ymode=log, - legend columns=2, - legend style={at={(0.5,-0.45)},anchor=south}, + legend columns=1, + legend pos=outer north east, + %legend columns=2, + %legend style={at={(0.5,-0.45)},anchor=south}, ymax=1.5, ymin=3e-8, ] @@ -936,7 +956,7 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d \addlegendentry{hybrid, $\gamma = 0.05$} \end{axis} \end{tikzpicture} - \caption{$\left( 3, 6 \right)$-regular LDPC code with $n=408, k=204$\\ \cite[\text{408.33.844}]{mackay_enc}} + \caption{$\left( 3, 6 \right)$-regular LDPC code with $n=408, k=204$ \cite[\text{408.33.844}]{mackay_enc}} \end{subfigure} \begin{subfigure}[c]{0.33\textwidth} \centering @@ -945,8 +965,10 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d grid=both, xlabel={$E_b / N_0$}, ylabel={FER}, ymode=log, - legend columns=2, - legend style={at={(0.5,-0.45)},anchor=south}, + legend columns=1, + legend pos=outer north east, + %legend columns=2, + %legend style={at={(0.5,-0.45)},anchor=south}, ymax=1.5, ymin=3e-8, ] @@ -978,7 +1000,7 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d \addlegendentry{hybrid, $\gamma = 0.05$} \end{axis} \end{tikzpicture} - \caption{BCH code with $n=31, k=26$} + \caption{BCH code with $n=31, k=26$\\[\baselineskip]} \end{subfigure}% \begin{subfigure}[c]{0.33\textwidth} \centering @@ -987,8 +1009,10 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d grid=both, xlabel={$E_b / N_0$}, ylabel={FER}, ymode=log, - legend columns=2, - legend style={at={(0.5,-0.45)},anchor=south}, + legend columns=1, + legend pos=outer north east, + %legend columns=2, + %legend style={at={(0.5,-0.45)},anchor=south}, ymax=1.5, ymin=3e-8, ] @@ -1020,7 +1044,7 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d \addlegendentry{hybrid, $\gamma = 0.05$} \end{axis} \end{tikzpicture} - \caption{$\left( 5, 10 \right)$-regular LDPC code with $n=204, k=102$\\ \cite[\text{204.55.187}]{mackay_enc}} + \caption{$\left( 5, 10 \right)$-regular LDPC code with $n=204, k=102$ \cite[\text{204.55.187}]{mackay_enc}} \end{subfigure}% \begin{subfigure}[c]{0.33\textwidth} \centering @@ -1029,8 +1053,8 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d grid=both, xlabel={$E_b / N_0$}, ylabel={FER}, ymode=log, - legend columns=2, - legend style={at={(0.5,-0.45)},anchor=south}, + legend columns=1, + legend pos=outer north east, ymax=1.5, ymin=3e-8, ] @@ -1062,7 +1086,7 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{x}}_n\text{ with lowest }d \addlegendentry{hybrid, $\gamma = 0.05$} \end{axis} \end{tikzpicture} - \caption{LDPC code (Progressive Edge Growth Construction) with $n=504, k=252$\\ \cite[\text{PEGReg252x504}]{mackay_enc}} + \caption{LDPC code (Progressive Edge Growth Construction) with $n=504, k=252$ \cite[\text{PEGReg252x504}]{mackay_enc}} \end{subfigure}% \end{figure} \end{frame}