diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-02 17:32:25 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-02 17:32:35 +0100 |
| commit | 8f86a548c3d6fdc47519b2d931a18adc42d320a6 (patch) | |
| tree | 0cd5f207f14da5012fd3ce0e3b1449be61018c3b | |
| parent | 7028bd0a27cc801a0ac8448cf3b62f8d7c4c41ac (diff) | |
| download | tfyy51-8f86a548c3d6fdc47519b2d931a18adc42d320a6.tar.gz | |
Lägg till riktiga figurer och data
| -rw-r--r-- | Dokument/Teknisk Dokumentation/root.tex | 3 | ||||
| -rw-r--r-- | Dokument/Teknisk Dokumentation/stats/lap.csv | 16 | ||||
| -rw-r--r-- | Dokument/Teknisk Dokumentation/text/06-resultat.tex | 29 |
3 files changed, 45 insertions, 3 deletions
diff --git a/Dokument/Teknisk Dokumentation/root.tex b/Dokument/Teknisk Dokumentation/root.tex index 8bb8f01..df42177 100644 --- a/Dokument/Teknisk Dokumentation/root.tex +++ b/Dokument/Teknisk Dokumentation/root.tex @@ -5,6 +5,9 @@ \usepackage{parskip} \usepackage{subfigure} +\usepackage{pgfplots} +\usepackage{pgfplotstable} + % Configure the document \title{Teknisk dokumentation} \author{Yc4} diff --git a/Dokument/Teknisk Dokumentation/stats/lap.csv b/Dokument/Teknisk Dokumentation/stats/lap.csv new file mode 100644 index 0000000..6383233 --- /dev/null +++ b/Dokument/Teknisk Dokumentation/stats/lap.csv @@ -0,0 +1,16 @@ +x, y1, y2 +1, 17.06, 18.32 +2, 13.14, 15.37 +3, 12.89, 14.28 +4, 12.66, 13.83 +5, 13.28, 14.13 +6, 12.81, 14.14 +7, 13.23, 14.49 +8, 13.17, 14.60 +9, 13.46, 14.81 +10, 12.96, 14.13 +11, 13.22, 14.77 +12, 13.07, 14.23 +13, 13.54, 14.48 +14, 13.18, 14.77 +15, 13.52, 14.30 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} |
