Moved pgf plots into own tex files
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\input{../PlotPreamble.tex}
|
||||
\begin{document}
|
||||
\small
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
scale only axis,
|
||||
width=9cm,
|
||||
height=6.5cm
|
||||
xlabel ={Measurement point},
|
||||
ylabel ={Distance in \si{\meter}},
|
||||
legend pos=north east,
|
||||
@@ -13,8 +18,9 @@
|
||||
ymin=0,
|
||||
xtick={1,2,3,4,5,6,7},
|
||||
]
|
||||
\addplot [color=black] table[x=X,y=GT,col sep=comma]{plots/data/BSTMean1.csv}; \addlegendentry{Groundtruth}
|
||||
\addplot [color=blue] table[x=X,y=MeanDist,col sep=comma]{plots/data/BSTMean1.csv}; \addlegendentry{Mean distance}
|
||||
\addplot [color=orange, mark=x, only marks, mark size=1pt] table[x=X,y=Y,col sep=comma]{plots/data/BSTData1.csv}; \addlegendentry{Measured distance}
|
||||
\addplot [color=black] table[x=X,y=GT,col sep=comma]{../data/BSTMean1.csv}; \addlegendentry{Groundtruth}
|
||||
\addplot [color=blue] table[x=X,y=MeanDist,col sep=comma]{../data/BSTMean1.csv}; \addlegendentry{Mean distance}
|
||||
\addplot [color=orange, mark=x, only marks, mark size=1.5pt, line width=0.5pt] table[x=X,y=Y,col sep=comma]{../data/BSTData1.csv}; \addlegendentry{Measured distance}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
@@ -1,7 +1,13 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\input{../PlotPreamble.tex}
|
||||
\begin{document}
|
||||
\small
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width=6.5cm,
|
||||
height=6.5cm,
|
||||
ybar,
|
||||
scale only axis,
|
||||
xtick align=inside,
|
||||
xlabel ={Measurement point},
|
||||
ylabel ={RSSI in \si{\dBm}},
|
||||
legend pos=north east,
|
||||
@@ -14,6 +20,8 @@
|
||||
%ymin=0,
|
||||
xtick={1,2,3,4,5,6,7},
|
||||
]
|
||||
\addplot [blue, fill=blue] table[x=X,y=RSSI,col sep=comma]{plots/data/BSTMean1.csv};
|
||||
\addplot [ta2skyblue, fill=ta2skyblue] table[x=X,y=RSSI,col sep=comma]{../data/BSTMean1.csv};
|
||||
%\addplot [blue, mark=x] table[x=X,y=RSSI,col sep=comma]{../data/BSTMean1.csv};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
@@ -1,8 +1,11 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\input{../PlotPreamble.tex}
|
||||
\begin{document}
|
||||
\small
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
scale only axis,
|
||||
width=0.8\textwidth,
|
||||
height=0.4\textwidth,
|
||||
width=15.7cm,
|
||||
height=6.5cm,
|
||||
xlabel ={Measurement point},
|
||||
ylabel ={Distance in \si{\meter}},
|
||||
legend pos=north east,
|
||||
@@ -14,8 +17,9 @@
|
||||
%enlarge y limits=false,
|
||||
]
|
||||
%\draw ({axis cs:7,0}|-{rel axis cs:0,1}) -- ({axis cs:7,0}|-{rel axis cs:0,0});
|
||||
\addplot [color=black] table[x=X,y=GT,col sep=comma]{plots/data/BSTMean2.csv}; \addlegendentry{Groundtruth}
|
||||
\addplot [color=blue] table[x=X,y=MeanDist,col sep=comma]{plots/data/BSTMean2.csv}; \addlegendentry{Mean distance}
|
||||
\addplot [color=orange, mark=x, only marks, mark size=1pt] table[x=X,y=Y,col sep=comma]{plots/data/BSTData2.csv}; \addlegendentry{Measured distance}
|
||||
\addplot [color=black] table[x=X,y=GT,col sep=comma]{../data/BSTMean2.csv}; \addlegendentry{Groundtruth}
|
||||
\addplot [color=blue] table[x=X,y=MeanDist,col sep=comma]{../data/BSTMean2.csv}; \addlegendentry{Mean distance}
|
||||
\addplot [color=orange, mark=x, only marks, mark size=1.5pt, line width=0.5pt] table[x=X,y=Y,col sep=comma]{../data/BSTData2.csv}; \addlegendentry{Measured distance}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
@@ -1,3 +1,7 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\input{../PlotPreamble.tex}
|
||||
\begin{document}
|
||||
\small
|
||||
\begin{tikzpicture}
|
||||
\definecolor{cdfPlot1}{rgb}{1,0,0}
|
||||
\definecolor{cdfPlot2}{rgb}{1,0.25,0}
|
||||
@@ -8,9 +12,8 @@
|
||||
\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,
|
||||
width=15.7cm,
|
||||
height=6.5cm,
|
||||
xlabel ={Distance error in \si{\meter}},
|
||||
ylabel ={CDF},
|
||||
legend pos=south east,
|
||||
@@ -21,13 +24,14 @@
|
||||
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}
|
||||
\addplot [color=cdfPlot1, dashed] table[x=X,y=Y,col sep=comma]{../data/1AC8260IntPixel2.csv}; \addlegendentry{AC 8260 int Pixel 2}
|
||||
\addplot [color=cdfPlot2, solid ] table[x=X,y=Y,col sep=comma]{../data/2AC8260IntPixel3.csv}; \addlegendentry{AC 8260 int Pixel 3}
|
||||
\addplot [color=cdfPlot3, dashed] table[x=X,y=Y,col sep=comma]{../data/3AC82602dBiPixel2.csv}; \addlegendentry{AC 8260 2dBi Pixel 2}
|
||||
\addplot [color=cdfPlot4, solid ] table[x=X,y=Y,col sep=comma]{../data/4AC82602dBiPixel3.csv}; \addlegendentry{AC 8260 2dBi Pixel 3}
|
||||
\addplot [color=cdfPlot5, dashed] table[x=X,y=Y,col sep=comma]{../data/5AC9462IntPixel2.csv}; \addlegendentry{AC 9462 int Pixel 2}
|
||||
\addplot [color=cdfPlot6, solid ] table[x=X,y=Y,col sep=comma]{../data/6AC9462IntPixel3.csv}; \addlegendentry{AC 9462 int Pixel 3}
|
||||
\addplot [color=cdfPlot7, dashed] table[x=X,y=Y,col sep=comma]{../data/7AC94622dBiPixel2.csv}; \addlegendentry{AC 9462 2dBi Pixel 2}
|
||||
\addplot [color=cdfPlot8, solid ] table[x=X,y=Y,col sep=comma]{../data/8AC94622dBiPixel3.csv}; \addlegendentry{AC 9462 2dBi Pixel 3}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
@@ -1,5 +1,11 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\input{../PlotPreamble.tex}
|
||||
\begin{document}
|
||||
\small
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width=8cm,
|
||||
height=8cm,
|
||||
xlabel ={True distance in \si{\meter}},
|
||||
ylabel ={Mean distance in \si{\meter}},
|
||||
legend pos=north west,
|
||||
@@ -15,15 +21,16 @@
|
||||
]
|
||||
% Groundtruth
|
||||
\addplot [color=black] %
|
||||
table[x=GT,y=GT,col sep=comma]{plots/data/intelmeanrange.csv};
|
||||
table[x=GT,y=GT,col sep=comma]{../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};
|
||||
table[x=GT,y=N6Mean,col sep=comma]{../data/intelmeanrange.csv};
|
||||
\addlegendentry{\intelOld}
|
||||
% Pixel 3a
|
||||
\addplot [color=blue, mark=x] %
|
||||
table[x=GT,y=N7Mean,col sep=comma]{plots/data/intelmeanrange.csv};
|
||||
table[x=GT,y=N7Mean,col sep=comma]{../data/intelmeanrange.csv};
|
||||
\addlegendentry{\intelNew}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
@@ -1,5 +1,11 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\input{../PlotPreamble.tex}
|
||||
\begin{document}
|
||||
\small
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width=8cm,
|
||||
height=8cm,
|
||||
xlabel ={True distance in \si{\meter}},
|
||||
ylabel ={Mean distance in \si{\meter}},
|
||||
legend pos=north west,
|
||||
@@ -15,15 +21,16 @@
|
||||
]
|
||||
% Groundtruth
|
||||
\addplot [color=black] %
|
||||
table[x=GT,y=GT,col sep=comma]{plots/data/pixelmeanrange.csv};
|
||||
table[x=GT,y=GT,col sep=comma]{../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};
|
||||
table[x=GT,y=P2Mean,col sep=comma]{../data/pixelmeanrange.csv};
|
||||
\addlegendentry{\pixelOld}
|
||||
% Pixel 3a
|
||||
\addplot [color=blue, mark=x] %
|
||||
table[x=GT,y=P3Mean,col sep=comma]{plots/data/pixelmeanrange.csv};
|
||||
table[x=GT,y=P3Mean,col sep=comma]{../data/pixelmeanrange.csv};
|
||||
\addlegendentry{\pixelNew}
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
68
tex/plots/PlotPreamble.tex
Normal file
68
tex/plots/PlotPreamble.tex
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
\usepackage{pgfplots}
|
||||
\usepackage{siunitx}
|
||||
\usepackage{xspace}
|
||||
|
||||
\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}}
|
||||
|
||||
\DeclareSIUnit{\belmilliwatt}{Bm}
|
||||
\DeclareSIUnit{\dBm}{\deci\belmilliwatt}
|
||||
|
||||
\newcommand{\pixelOld}{Pixel~2~XL\xspace}
|
||||
\newcommand{\pixelNew}{Pixel~3a\xspace}
|
||||
\newcommand{\pixelBoth}{Pixel~2~XL and~3a\xspace}
|
||||
|
||||
\newcommand{\intelOld}{Intel~AC~8260\xspace}
|
||||
\newcommand{\intelNew}{Intel~AC~9462\xspace}
|
||||
\newcommand{\intelBoth}{Intel~AC~8260 and~9462\xspace}
|
||||
|
||||
|
||||
% Tango colors
|
||||
% butter (yellowish)
|
||||
\definecolor{tabutter}{rgb}{0.98824, 0.91373, 0.30980} % #fce94f
|
||||
\definecolor{ta2butter}{rgb}{0.92941, 0.83137, 0} % #edd400
|
||||
\definecolor{ta3butter}{rgb}{0.76863, 0.62745, 0} % #c4a000
|
||||
|
||||
% orange
|
||||
\definecolor{taorange}{rgb}{0.98824, 0.68627, 0.24314} % #fcaf3e
|
||||
\definecolor{ta2orange}{rgb}{0.96078, 0.47451, 0} % #f57900
|
||||
\definecolor{ta3orange}{rgb}{0.80784, 0.36078, 0} % #ce5c00
|
||||
|
||||
% chocolate (brownish)
|
||||
\definecolor{tachocolate}{rgb}{0.91373, 0.72549, 0.43137} % #e9b96e
|
||||
\definecolor{ta2chocolate}{rgb}{0.75686, 0.49020, 0.066667} % #c17d11
|
||||
\definecolor{ta3chocolate}{rgb}{0.56078, 0.34902, 0.0078431} % #8f5902
|
||||
|
||||
% chameleon (greenish)
|
||||
\definecolor{tachameleon}{rgb}{0.54118, 0.88627, 0.20392} % #8ae234
|
||||
\definecolor{ta2chameleon}{rgb}{0.45098, 0.82353, 0.086275} % #73d216
|
||||
\definecolor{ta3chameleon}{rgb}{0.30588, 0.60392, 0.023529} % #4e9a06
|
||||
|
||||
% sky blue
|
||||
\definecolor{taskyblue}{rgb}{0.44706, 0.56078, 0.81176} % #728fcf
|
||||
\definecolor{ta2skyblue}{rgb}{0.20392, 0.39608, 0.64314} % #3465a4
|
||||
\definecolor{ta3skyblue}{rgb}{0.12549, 0.29020, 0.52941} % #204a87
|
||||
|
||||
% plum (violettish)
|
||||
\definecolor{taplum}{rgb}{0.67843, 0.49804, 0.65882} % #ad7fa8
|
||||
\definecolor{ta2plum}{rgb}{0.45882, 0.31373, 0.48235} % #75507b
|
||||
\definecolor{ta3plum}{rgb}{0.36078, 0.20784, 0.4} % #5c3566
|
||||
|
||||
% scarlet red
|
||||
\definecolor{tascarletred}{rgb}{0.93725, 0.16078, 0.16078} % #ef2929
|
||||
\definecolor{ta2scarletred}{rgb}{0.8, 0, 0} % #cc0000
|
||||
\definecolor{ta3scarletred}{rgb}{0.64314, 0, 0} % #a40000
|
||||
|
||||
% aluminium
|
||||
\definecolor{taaluminium}{rgb}{0.93333, 0.93333, 0.92549} % #eeeeec
|
||||
\definecolor{ta2aluminium}{rgb}{0.82745, 0.84314, 0.81176} % #d3d7cf
|
||||
\definecolor{ta3aluminium}{rgb}{0.72941, 0.74118, 0.71373} % #babdb6
|
||||
|
||||
% gray
|
||||
\definecolor{tagray}{rgb}{0.53333, 0.54118, 0.52157} % #888a85
|
||||
\definecolor{ta2gray}{rgb}{0.33333, 0.34118, 0.32549} % #555753
|
||||
\definecolor{ta3gray}{rgb}{0.18039, 0.20392, 0.21176} % #2e3436
|
||||
15
tex/plots/_build.bat
Normal file
15
tex/plots/_build.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
|
||||
SET TEX=pdflatex -shell-escape
|
||||
|
||||
cd out
|
||||
|
||||
start %TEX% ../BSTPlot1.pgf
|
||||
start %TEX% ../BSTPlot1Rssi.pgf
|
||||
start %TEX% ../BSTPlot2.pgf
|
||||
start %TEX% ../DistErrorCdf.pgf
|
||||
start %TEX% ../MeanDistIntel.pgf
|
||||
start %TEX% ../MeanDistPixel.pgf
|
||||
|
||||
:eof
|
||||
cd ..
|
||||
1
tex/plots/out/.gitignore
vendored
Normal file
1
tex/plots/out/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!*.pdf
|
||||
BIN
tex/plots/out/BSTPlot1.pdf
Normal file
BIN
tex/plots/out/BSTPlot1.pdf
Normal file
Binary file not shown.
BIN
tex/plots/out/BSTPlot1Rssi.pdf
Normal file
BIN
tex/plots/out/BSTPlot1Rssi.pdf
Normal file
Binary file not shown.
BIN
tex/plots/out/BSTPlot2.pdf
Normal file
BIN
tex/plots/out/BSTPlot2.pdf
Normal file
Binary file not shown.
BIN
tex/plots/out/DistErrorCdf.pdf
Normal file
BIN
tex/plots/out/DistErrorCdf.pdf
Normal file
Binary file not shown.
BIN
tex/plots/out/MeanDistIntel.pdf
Normal file
BIN
tex/plots/out/MeanDistIntel.pdf
Normal file
Binary file not shown.
BIN
tex/plots/out/MeanDistPixel.pdf
Normal file
BIN
tex/plots/out/MeanDistPixel.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user