From 8f86a548c3d6fdc47519b2d931a18adc42d320a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= <gusso230@student.liu.se>
Date: Mon, 2 Dec 2019 17:32:25 +0100
Subject: =?UTF-8?q?L=C3=A4gg=20till=20riktiga=20figurer=20och=20data?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Teknisk Dokumentation/text/06-resultat.tex     | 29 +++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)

(limited to 'Dokument/Teknisk Dokumentation/text/06-resultat.tex')

diff --git a/Dokument/Teknisk Dokumentation/text/06-resultat.tex b/Dokument/Teknisk Dokumentation/text/06-resultat.tex
index be9ba5c..44ac4b2 100644
--- a/Dokument/Teknisk Dokumentation/text/06-resultat.tex	
+++ b/Dokument/Teknisk Dokumentation/text/06-resultat.tex	
@@ -8,14 +8,37 @@
 \end{figure}
 
 \begin{figure}
-  \centering
-  \includegraphics[width=0.45\linewidth]{Figures/lap_times_with_calibration}
+	\centering
+	\begin{tikzpicture}
+		\begin{axis} [xmin=0, xmax=15.5,ymin=10,ymax=20, xlabel=Varv, ylabel={Tid (s)}, 
+						legend pos=outer north east]
+			\addplot+ [blue, mark options={blue}, mark=square*] table [col sep=comma, x index=0, y index = 1] {stats/lap.csv};
+			\addlegendentry{Körning 1}
+			\addplot+ [red, mark options={red}, mark=*] table [col sep=comma, x index=0, y index = 2] {stats/lap.csv};
+			\addlegendentry{Körning 2}
+		\end{axis}
+	\end{tikzpicture}
   \caption{Varvtider för de två körningarna från redovisningen, inklusive
 	kalibreringsvarven.}
 
 	\vspace*{\floatsep}% https://tex.stackexchange.com/q/26521/5764
 
-	\includegraphics[width=0.45\linewidth]{Figures/lap_times_without_calibration}
+	\begin{tikzpicture}
+		\begin{axis} [xmin=5.5, xmax=15.5,ymin=12,ymax=16, xlabel=Varv, ylabel={Tid (s)}, 
+						legend pos=outer north east]
+			\addplot+ [blue, mark options={blue}, mark=square*] table [col sep=comma, x index=0, y index = 1] {stats/lap.csv};
+			\addlegendentry{Körning 1}
+			\addplot[blue, domain=0:20] {13};
+			\addlegendentry{Referenstid körning 1}
+			\addplot+ [red, mark options={red}, mark=*] table [col sep=comma, x index=0, y index = 2] {stats/lap.csv};
+			\addlegendentry{Körning 2}
+			\addplot [red, domain=0:20] {14};
+			\addlegendentry{Referenstid körning 2}
+			\draw[dotted] (axis cs:0,12.5) -- (axis cs:16,12.5);
+			\draw[dotted] (axis cs:0,13.5) -- (axis cs:16,13.5);
+			\draw[dotted] (axis cs:0,14.5) -- (axis cs:16,14.5);
+		\end{axis}
+	\end{tikzpicture}
 	\caption{Varvtider för de två körningarna från redovisningen, exklusive
 	kalibreringsvarven.}
 \end{figure}
-- 
cgit v1.2.1


From 30e76420c54823f5b7c8388bdbee59882e44018a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= <gusso230@student.liu.se>
Date: Mon, 2 Dec 2019 17:50:49 +0100
Subject: Byt ut segmenttidsdiagram

---
 Dokument/Teknisk Dokumentation/text/06-resultat.tex | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

(limited to 'Dokument/Teknisk Dokumentation/text/06-resultat.tex')

diff --git a/Dokument/Teknisk Dokumentation/text/06-resultat.tex b/Dokument/Teknisk Dokumentation/text/06-resultat.tex
index 44ac4b2..e024dd8 100644
--- a/Dokument/Teknisk Dokumentation/text/06-resultat.tex	
+++ b/Dokument/Teknisk Dokumentation/text/06-resultat.tex	
@@ -2,7 +2,20 @@
 
 \begin{figure}
 	\centering
-	\includegraphics[width=0.5\linewidth]{Figures/segment_times}
+	\begin{tikzpicture}
+		\begin{axis}[
+				ylabel=Tid (s),
+				legend pos = outer north east,
+				ybar interval=0.75
+		]
+			\addplot+ [] coordinates {(1, 1.25) (2, 0.34) (3, 1.33) (4, 2.06) (5, 0.85)
+			(6, 1.74) (7, 2.55) (8, 1.97) (9, 1.28) (10, 1)};
+			\addlegendentry{Körning 1}
+			\addplot+ [] coordinates {(1, 1.27) (2, 0.30) (3, 1.44) (4, 2.14) (5, 1.01)
+			(6, 2.22) (7, 2.83) (8, 2.14) (9, 1.32) (10, 1)};
+			\addlegendentry{Körning 2}
+		\end{axis}
+	\end{tikzpicture}
 	\caption{Genomsnittlig segmentstid för de två körningarna från redovisningen.}
 	\label{fig:seg_times}
 \end{figure}
@@ -20,6 +33,7 @@
 	\end{tikzpicture}
   \caption{Varvtider för de två körningarna från redovisningen, inklusive
 	kalibreringsvarven.}
+	\label{fig:laptimes-calibration}
 
 	\vspace*{\floatsep}% https://tex.stackexchange.com/q/26521/5764
 
@@ -41,4 +55,5 @@
 	\end{tikzpicture}
 	\caption{Varvtider för de två körningarna från redovisningen, exklusive
 	kalibreringsvarven.}
+	\label{fig:laptimes-no-calibration}
 \end{figure}
-- 
cgit v1.2.1

