Added plots as pgfplots

This commit is contained in:
2020-03-10 11:09:58 +01:00
parent 642069e42a
commit ea7b2732bb
15 changed files with 144 additions and 10 deletions

View File

@@ -32,6 +32,16 @@
\usepackage{subfig}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{pgfplots}
\usepackage{tikzscale}
% pgfplot defaults
\pgfplotsset{compat=newest}
\pgfplotsset{legend cell align=left}
\pgfplotsset{major grid style=solid}
\pgfplotsset{minor grid style=dashed}
\pgfplotsset{every axis plot/.append style={line width=1pt}}
%\updates{yes} % If there is an update available, un-comment this line

View File

@@ -48,7 +48,7 @@ Due to the rarity of this problem we decided to repeat these faulty experiment r
The access points are Intel NUCs running a patched Linux to enable FTM support.
In total we're using eight APs based on Intel WiFi cards.
Four of them are based on Intel Dualband-Wireless-AC~8260 cards configured as described by \etal{Ibrahim} \cite{ibrahim2018verification}.
The remaining four are based on Intel Wireless-AC~9462 modules and run a recent Linux kernel where the iwlwifi driver and hostapd are already prepared to support FTM.
The remaining four are based on Intel Wireless-AC~9462 modules and run a recent Linux kernel 5.3.7 where the iwlwifi driver and hostapd are already prepared to support FTM.
However, the driver still requires small manual changes, as a global boolean flag needs to be set to activate the FTM related code.
In addition, the firmware of the card returns that the chip is not calibrated for FTM.
As a consequence the driver disables FTM responder functionality.
@@ -172,20 +172,23 @@ Both the \pixelBoth produce similar results, but the \pixelOld tends to underest
Opposed to \etal{Ibrahim} \cite{ibrahim2018verification} findings no single constant offset which significantly improves the measurements across all device combinations could be found in our tests.
However, the overall error of the device combinations is reasonable small and its distribution is mostly Gaussian-like, which justifies the basic applicability of the technique and devices for indoor positioning.
\begin{figure}[ht]
\begin{minipage}{.5\textwidth}
\begin{figure}[ht]
\centering
\subfloat[]{\label{fig:DistMeasMeanNucPixel:a}\includegraphics[width=0.8\textwidth]{DistMeasMeanPerPixel.png}}
\end{minipage}%
\begin{minipage}{.5\textwidth}
\begin{minipage}{.45\textwidth}
\centering
\subfloat[]{\label{fig:DistMeasMeanNucPixel:b}\includegraphics[width=0.8\textwidth]{DistMeasMeanPerNuc.png}}
\subfloat[]{\label{fig:DistMeasMeanNucPixel:a}\includegraphics[width=\textwidth]{plots/MeanDistPixel.pgf}}
\end{minipage}\hspace{.09\textwidth}
\begin{minipage}{.45\textwidth}
\centering
\subfloat[]{\label{fig:DistMeasMeanNucPixel:b}\includegraphics[width=\textwidth]{plots/MeanDistIntel.pgf}}
\end{minipage}\par\medskip
\centering
\subfloat[CDF of error]{\label{fig:DistMeasMeanNucPixel:c}\includegraphics[width=\textwidth]{DistMeasCDF.png}}
\caption{my fig}
\subfloat[]{\label{fig:DistMeasMeanNucPixel:c}%
\input{plots/DistErrorCdf.pgf}%
%\includegraphics[width=\textwidth,axisratio=2.3]{plots/DistErrorCdf.pgf}%
}
\caption{\ref{fig:DistMeasMeanNucPixel:a}, \ref{fig:DistMeasMeanNucPixel:b} show the mean distance per smartphone and per access point, respectively. \ref{fig:DistMeasMeanNucPixel:c} is the CDF of the measurement error for each device combination.}
\label{fig:DistMeasMeanNucPixel}
\end{figure}

View File

@@ -0,0 +1,33 @@
\begin{tikzpicture}
\definecolor{cdfPlot1}{rgb}{1,0,0}
\definecolor{cdfPlot2}{rgb}{1,0.25,0}
\definecolor{cdfPlot3}{rgb}{1,0.5,0}
\definecolor{cdfPlot4}{rgb}{1,0.75,0}
\definecolor{cdfPlot5}{rgb}{0,0,1}
\definecolor{cdfPlot6}{rgb}{0,0.333,0.833}
\definecolor{cdfPlot7}{rgb}{0,0.666,0.666}
\definecolor{cdfPlot8}{rgb}{0,1,0.5}
\begin{axis}[
scale only axis,
width=0.8\textwidth,
height=0.4\textwidth,
xlabel ={Distance error in \si{\meter}},
ylabel ={CDF},
legend pos=south east,
xmajorgrids=true,
%xminorgrids=true,
ymajorgrids=true,
%yminorgrids=true,
enlarge x limits=false,
enlarge y limits=false,
]
\addplot [color=cdfPlot1, dashed] table[x=X,y=Y,col sep=comma]{plots/data/1AC8260IntPixel2.csv}; \addlegendentry{AC 8260 int Pixel 2}
\addplot [color=cdfPlot2, solid ] table[x=X,y=Y,col sep=comma]{plots/data/2AC8260IntPixel3.csv}; \addlegendentry{AC 8260 int Pixel 3}
\addplot [color=cdfPlot3, dashed] table[x=X,y=Y,col sep=comma]{plots/data/3AC82602dBiPixel2.csv}; \addlegendentry{AC 8260 2dBi Pixel 2}
\addplot [color=cdfPlot4, solid ] table[x=X,y=Y,col sep=comma]{plots/data/4AC82602dBiPixel3.csv}; \addlegendentry{AC 8260 2dBi Pixel 3}
\addplot [color=cdfPlot5, dashed] table[x=X,y=Y,col sep=comma]{plots/data/5AC9462IntPixel2.csv}; \addlegendentry{AC 9462 int Pixel 2}
\addplot [color=cdfPlot6, solid ] table[x=X,y=Y,col sep=comma]{plots/data/6AC9462IntPixel3.csv}; \addlegendentry{AC 9462 int Pixel 3}
\addplot [color=cdfPlot7, dashed] table[x=X,y=Y,col sep=comma]{plots/data/7AC94622dBiPixel2.csv}; \addlegendentry{AC 9462 2dBi Pixel 2}
\addplot [color=cdfPlot8, solid ] table[x=X,y=Y,col sep=comma]{plots/data/8AC94622dBiPixel3.csv}; \addlegendentry{AC 9462 2dBi Pixel 3}
\end{axis}
\end{tikzpicture}

View File

@@ -0,0 +1,29 @@
\begin{tikzpicture}
\begin{axis}[
xlabel ={True distance in \si{\meter}},
ylabel ={Mean distance in \si{\meter}},
legend pos=north west,
xmajorgrids=true,
%xminorgrids=true,
ymajorgrids=true,
%yminorgrids=true,
minor tick num=4,
xmin=0,
ymin=0,
xtick={0,4,8,12,16,20},
ytick={0,4,8,12,16,20,24}
]
% Groundtruth
\addplot [color=black] %
table[x=GT,y=GT,col sep=comma]{plots/data/intelmeanrange.csv};
\addlegendentry{Groundtruth}
% Pixel 2 XL
\addplot [color=red, mark=x] %
table[x=GT,y=N6Mean,col sep=comma]{plots/data/intelmeanrange.csv};
\addlegendentry{\intelOld}
% Pixel 3a
\addplot [color=blue, mark=x] %
table[x=GT,y=N7Mean,col sep=comma]{plots/data/intelmeanrange.csv};
\addlegendentry{\intelNew}
\end{axis}
\end{tikzpicture}

View File

@@ -0,0 +1,29 @@
\begin{tikzpicture}
\begin{axis}[
xlabel ={True distance in \si{\meter}},
ylabel ={Mean distance in \si{\meter}},
legend pos=north west,
xmajorgrids=true,
%xminorgrids=true,
ymajorgrids=true,
%yminorgrids=true,
minor tick num=4,
xmin=0,
ymin=0,
xtick={0,4,8,12,16,20},
ytick={0,4,8,12,16,20,24}
]
% Groundtruth
\addplot [color=black] %
table[x=GT,y=GT,col sep=comma]{plots/data/pixelmeanrange.csv};
\addlegendentry{Groundtruth}
% Pixel 2 XL
\addplot [color=red, mark=x] %
table[x=GT,y=P2Mean,col sep=comma]{plots/data/pixelmeanrange.csv};
\addlegendentry{\pixelOld}
% Pixel 3a
\addplot [color=blue, mark=x] %
table[x=GT,y=P3Mean,col sep=comma]{plots/data/pixelmeanrange.csv};
\addlegendentry{\pixelNew}
\end{axis}
\end{tikzpicture}

BIN
tex/plots/data/1AC8260IntPixel2.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:c65e129a03edaf8044d8551c5c852361f78faa7c19cc18f6333a174bceeb9349
3 size 34021

BIN
tex/plots/data/2AC8260IntPixel3.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:c9bfb3ee50b41365c69b462450333c7a36156fc711ef5ef0838482b86081bf47
3 size 34460

BIN
tex/plots/data/3AC82602dBiPixel2.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:5a7b9efec12b31716343e3350c4b62cc6be10cfca3f4e9db8c94db5f0e0bb5be
3 size 34501

BIN
tex/plots/data/4AC82602dBiPixel3.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:6abc3acac217037ea93b981717da1fb7c1d41cdab34b5e5e98c151a558c52d8b
3 size 35077

BIN
tex/plots/data/5AC9462IntPixel2.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:3de226c6f4218f04b250f9e4bb49bd8b3cbc283ee8025942d807914f24c8662f
3 size 31482

BIN
tex/plots/data/6AC9462IntPixel3.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:0eae7e5a3215256db852cabc3ff07d498753a267ff6bed2ef53d4f0745f5a25c
3 size 30563

BIN
tex/plots/data/7AC94622dBiPixel2.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:4b40008721aeccf3e4f5fe9f2694c869f4411dc3803d78621b15b15cda38d94b
3 size 34456

BIN
tex/plots/data/8AC94622dBiPixel3.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:cf868d731d521a01908d093a00dc3e014b66e586452471a8f4e5ef45eb79413e
3 size 31605

BIN
tex/plots/data/intelmeanrange.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:4918510c648ef4574ef7dea3ea54eeff67e88a934f6e48cf4048eadbedec3b1b
3 size 1107

BIN
tex/plots/data/pixelmeanrange.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:3882a2ec2f18655408b2a1218b60146af911eb59e0b5a713ba33c02b9d0627dc
3 size 1118