Changed surface plot viewing angle; Fixed surface plot legends

This commit is contained in:
Andreas Tsouchlos 2023-01-26 12:30:03 +01:00
parent d0fff24e12
commit 83cf2df00e

View File

@ -111,17 +111,18 @@
\centering \centering
\begin{tikzpicture}[scale=0.55] \begin{tikzpicture}[scale=0.55]
\begin{axis}[view={75}{60}, \begin{axis}[view={75}{30},
zmode=log, zmode=log,
xlabel={$E_b / N_0$ (dB)}, xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$}, ylabel={$\gamma$},
zlabel={BER},] zlabel={BER},
legend pos=outer north east,]
\addplot3[surf, \addplot3[surf,
mesh/rows=17, mesh/cols=14, mesh/rows=17, mesh/cols=14,
colormap/viridis] table [col sep=comma, colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER] x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv}; {res/proximal/2d_ber_fer_dfr_20433484.csv};
\addlegendentry{$\gamma = \left[ 0\text{:}.01\text{:}.16 \right] $} \addlegendentry{$\gamma = \left[ 0\text{:}0.01\text{:}0.16 \right] $}
\addplot3[red, line width=1.5] table [col sep=comma, \addplot3[red, line width=1.5] table [col sep=comma,
discard if not={gamma}{0.05}, discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER] x=SNR, y=gamma, z=BER]
@ -156,208 +157,212 @@
\begin{frame}[t] \begin{frame}[t]
\frametitle{Proximal Decoding: Choice of $\gamma$} \frametitle{Proximal Decoding: Choice of $\gamma$}
\begin{figure}[H] \begin{minipage}[c]{0.9\textwidth}
\vspace*{-0.5cm}
\centering \centering
\begin{subfigure}[c]{0.33\textwidth}
\begin{figure}[H]
\vspace*{-0.5cm}
\centering \centering
\begin{tikzpicture}[scale=0.35] \begin{subfigure}[c]{0.33\textwidth}
\begin{axis}[view={75}{60}, \centering
zmode=log, \begin{tikzpicture}[scale=0.4]
xlabel={$E_b / N_0$ (dB)}, \begin{axis}[view={75}{30},
ylabel={$\gamma$}, zmode=log,
zlabel={BER},] xlabel={$E_b / N_0$ (dB)},
\addplot3[surf, ylabel={$\gamma$},
mesh/rows=17, mesh/cols=10, zlabel={BER},]
colormap/viridis] table [col sep=comma, \addplot3[surf,
x=SNR, y=gamma, z=BER] mesh/rows=17, mesh/cols=10,
{res/proximal/2d_ber_fer_dfr_963965.csv}; colormap/viridis] table [col sep=comma,
\addlegendentry{$\gamma = \left[ 0\text{:}.01\text{:}.16 \right] $}
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_963965.csv};
\addlegendentry{$\gamma = 0.05$}
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_963965.csv};
\addlegendentry{$\gamma = 0.01$}
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER] x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_963965.csv}; {res/proximal/2d_ber_fer_dfr_963965.csv};
\addlegendentry{$\gamma = 0.15$} \addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_963965.csv};
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_963965.csv};
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_963965.csv};
\end{axis}
\end{tikzpicture}
\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
\begin{tikzpicture}[scale=0.4]
\begin{axis}[view={75}{30},
zmode=log,
xlabel={$E_b/N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=14,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\end{axis}
\end{tikzpicture}
\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
\begin{tikzpicture}[scale=0.4]
\begin{axis}[view={75}{30},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\end{axis}
\end{tikzpicture}
\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
\begin{tikzpicture}[scale=0.4]
\begin{axis}[view={75}{30},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\end{axis}
\end{tikzpicture}
\caption{BCH code with $n=31, k=26$\\[2\baselineskip]}
\end{subfigure}%
\begin{subfigure}[c]{0.33\textwidth}
\centering
\begin{tikzpicture}[scale=0.4]
\begin{axis}[view={75}{30},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\end{axis}
\end{tikzpicture}
\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
\begin{tikzpicture}[scale=0.4]
\begin{axis}[view={75}{30},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\end{axis}
\end{tikzpicture}
\caption{LDPC code (Progressive Edge Growth Construction) with $n=504, k=252$ \cite[\text{PEGReg252x504}]{mackay_enc}}
\end{subfigure}%
\end{figure}
\end{minipage}%
\begin{minipage}[c]{0.1\textwidth}
\centering
\begin{figure}[H]
\vspace*{-1.5cm}
\hspace*{-0.4cm}
\centering
\begin{tikzpicture}[scale=0.6]
\begin{axis}[hide axis,
xmin=10, xmax=50,
ymin=0, ymax=0.4,
legend style={draw=white!15!black,legend cell align=left}]
\addlegendimage{surf, colormap/viridis}
\addlegendentry{$\gamma = \left[ 0\text{ : }0.01\text{ : }0.16 \right] $};
\addlegendimage{red, line width=1.5pt}
\addlegendentry{$\gamma = 0.05$};
\addlegendimage{blue, line width=1.5pt}
\addlegendentry{$\gamma = 0.01$};
\addlegendimage{Brown, line width=1.5pt}
\addlegendentry{$\gamma = 0.15$};
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\caption{$\left( 3, 6 \right)$-regular LDPC code with $n=96, k=48$ \cite[\text{96.3.965}]{mackay_enc}} \end{figure}
\end{subfigure}% \end{minipage}
\begin{subfigure}[c]{0.33\textwidth}
\centering
\begin{tikzpicture}[scale=0.35]
\begin{axis}[view={75}{60},
zmode=log,
xlabel={$E_b/N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=14,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\addlegendentry{$\gamma = \left[ 0\text{:}.01\text{:}.16 \right] $}
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\addlegendentry{$\gamma = 0.05$}
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\addlegendentry{$\gamma = 0.01$}
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20433484.csv};
\addlegendentry{$\gamma = 0.15$}
\end{axis}
\end{tikzpicture}
\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
\begin{tikzpicture}[scale=0.35]
\begin{axis}[view={75}{60},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\addlegendentry{$\gamma = \left[ 0\text{:}.01\text{:}.16 \right] $}
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\addlegendentry{$\gamma = 0.05$}
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\addlegendentry{$\gamma = 0.01$}
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_40833844.csv};
\addlegendentry{$\gamma = 0.15$}
\end{axis}
\end{tikzpicture}
\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
\begin{tikzpicture}[scale=0.35]
\begin{axis}[view={75}{60},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\addlegendentry{$\gamma = \left[ 0\text{:}.01\text{:}.16 \right] $}
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\addlegendentry{$\gamma = 0.05$}
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\addlegendentry{$\gamma = 0.01$}
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_bch_31_26.csv};
\addlegendentry{$\gamma = 0.15$}
\end{axis}
\end{tikzpicture}
\caption{BCH code with $n=31, k=26$\\[2\baselineskip]}
\end{subfigure}%
\begin{subfigure}[c]{0.33\textwidth}
\centering
\begin{tikzpicture}[scale=0.35]
\begin{axis}[view={75}{60},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\addlegendentry{$\gamma = \left[ 0\text{:}.01\text{:}.16 \right] $}
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\addlegendentry{$\gamma = 0.05$}
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\addlegendentry{$\gamma = 0.01$}
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_20455187.csv};
\addlegendentry{$\gamma = 0.15$}
\end{axis}
\end{tikzpicture}
\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
\begin{tikzpicture}[scale=0.35]
\begin{axis}[view={75}{60},
zmode=log,
xlabel={$E_b / N_0$ (dB)},
ylabel={$\gamma$},
zlabel={BER},]
\addplot3[surf,
mesh/rows=17, mesh/cols=10,
colormap/viridis] table [col sep=comma,
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\addlegendentry{$\gamma = \left[ 0\text{:}.01\text{:}.16 \right] $}
\addplot3[red, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.05},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\addlegendentry{$\gamma = 0.05$}
\addplot3[blue, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.01},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\addlegendentry{$\gamma = 0.01$}
\addplot3[brown, line width=1.5] table[col sep=comma,
discard if not={gamma}{0.15},
x=SNR, y=gamma, z=BER]
{res/proximal/2d_ber_fer_dfr_pegreg252x504.csv};
\addlegendentry{$\gamma = 0.15$}
\end{axis}
\end{tikzpicture}
\caption{LDPC code (Progressive Edge Growth Construction) with $n=504, k=252$ \cite[\text{PEGReg252x504}]{mackay_enc}}
\end{subfigure}%
\end{figure}
\end{frame} \end{frame}