diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-09 20:40:24 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-09 20:40:24 +0100 |
| commit | 0830278b04854a51d6b122d4bd55891585b3145d (patch) | |
| tree | e4e38bdcee8ac776329d3a0096cb21f65269bced /Dokument/projektkonferens | |
| parent | 7901c8fd149374059948238607fd66faa116d2cd (diff) | |
| download | tfyy51-0830278b04854a51d6b122d4bd55891585b3145d.tar.gz | |
Lägg till tidsrapporteringsgrafer
Diffstat (limited to 'Dokument/projektkonferens')
| -rw-r--r-- | Dokument/projektkonferens/Makefile | 36 | ||||
| -rw-r--r-- | Dokument/projektkonferens/figures.tex | 29 | ||||
| -rw-r--r-- | Dokument/projektkonferens/time.csv | 13 |
3 files changed, 78 insertions, 0 deletions
diff --git a/Dokument/projektkonferens/Makefile b/Dokument/projektkonferens/Makefile new file mode 100644 index 0000000..83e9b15 --- /dev/null +++ b/Dokument/projektkonferens/Makefile @@ -0,0 +1,36 @@ +# You want latexmk to *always* run, because make does not have all the info. +# Also, include non-file targets in .PHONY so they are run regardless of any +# file of the given name existing. +.PHONY: figures.pdf all clean + +# The first rule in a Makefile is the one executed by default ("make"). It +# should always be the "all" rule, so that "make" and "make all" are identical. +all: figures.pdf + +# CUSTOM BUILD RULES + +# In case you didn't know, '$@' is a variable holding the name of the target, +# and '$<' is a variable holding the (first) dependency of a rule. +# "raw2tex" and "dat2tex" are just placeholders for whatever custom steps +# you might have. + +%.tex: %.raw + ./raw2tex $< > $@ + +%.tex: %.dat + ./dat2tex $< > $@ + +# MAIN LATEXMK RULE + +# -pdf tells latexmk to generate PDF directly (instead of DVI). +# -pdflatex="" tells latexmk to call a specific backend with specific options. +# -use-make tells latexmk to call make for generating missing files. + +# -interaction=nonstopmode keeps the pdflatex backend from stopping at a +# missing file reference and interactively asking you for an alternative. + +figures.pdf: figures.tex + latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make figures.tex + +clean: + latexmk -CA diff --git a/Dokument/projektkonferens/figures.tex b/Dokument/projektkonferens/figures.tex new file mode 100644 index 0000000..e25f70b --- /dev/null +++ b/Dokument/projektkonferens/figures.tex @@ -0,0 +1,29 @@ +\documentclass{standalone} + +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{pgfplots, pgfplotstable} +\pgfplotsset{scaled y ticks=false} + +\renewcommand{\familydefault}{\sfdefault} +\usepackage[cm]{sfmath} + +\begin{document} + +\begin{figure} + \begin{tikzpicture} + \begin{axis} [width=32em, height=24em, ymin=1, ymax=10800, xmin=0, xmax=12.2, + xtick={1,2,...,12}, xticklabels={38,39,...,49}, every axis plot/.append + style={thick}, ytick={0,1200,...,9600}, yticklabels={,,}, axis y line*=right] + % yticklabels={,20,40...,160} + \addplot+ [mark=none] table [col sep=comma, x index=0, y index = 1] {time.csv}; + \addplot+ [mark=none] table [col sep=comma, x index=0, y index = 2] {time.csv}; + \addplot+ [mark=none] table [col sep=comma, x index=0, y index = 3] {time.csv}; + \addplot+ [mark=none] table [col sep=comma, x index=0, y index = 4] {time.csv}; + \addplot+ [mark=none] table [col sep=comma, x index=0, y index = 5] {time.csv}; + % \addplot+ [red, domain=0:16, mark=none] {7200}; + \end{axis} + \end{tikzpicture} +\end{figure} + +\end{document} diff --git a/Dokument/projektkonferens/time.csv b/Dokument/projektkonferens/time.csv new file mode 100644 index 0000000..60d69c0 --- /dev/null +++ b/Dokument/projektkonferens/time.csv @@ -0,0 +1,13 @@ +0,0,0,0,0,0 +1,240,225,225,360,225 +2,660,470,485,745,655 +3,1290,880,1095,1335,1110 +4,2195,1665,1830,1990,1725 +5,3680,2300,2650,3070,2405 +6,4410,2670,3015,3325,2405 +7,4550,3405,3705,3710,3140 +8,5165,3755,4075,4055,3480 +9,6175,4580,4990,5330,4255 +10,6815,5220,5320,5975,5140 +11,8885,7285,6950,7800,6600 +12,10190,8315,7970,9345,7200 |
