diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7db3eb --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.aux +*.log +*.swp diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3d0ea90 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +TEX = pdflatex +BIBTEX = bibtex +PROJ = main +TEXFILE = main.tex +PYTHON = python + +all: pdf + +# pdf: $(TEXFILE) +# $(TEX) -shell-escape $< +# $(BIBTEX) $(PROJ) +# $(TEX) -shell-escape $< +pdf: $(TEXFILE) + $(PYTHON) figures/plots.py + $(TEX) -shell-escape $< + $(TEX) -shell-escape $< + +clean: + rm -f \ + $(TEXFILE:.tex=.pdf) \ + $(TEXFILE:.tex=.aux) \ + $(TEXFILE:.tex=.log) \ + $(TEXFILE:.tex=.toc) \ + texput.log \ + main.pyg + rm -rf \ + _minted-$(PROJ) diff --git a/cem17_template.pdf b/cem17_template.pdf deleted file mode 100644 index 8bd1cab..0000000 Binary files a/cem17_template.pdf and /dev/null differ diff --git a/figures/plots.py b/figures/plots.py new file mode 100644 index 0000000..61c15ae --- /dev/null +++ b/figures/plots.py @@ -0,0 +1,16 @@ +import matplotlib.pyplot as plt +plt.rcdefaults() +import numpy as np +import matplotlib.pyplot as plt +plt.rcdefaults() + +fig, ax = plt.subplots() +systems = ('BW', "Minsky") +performance = (10, 100) +x_pos = np.arange(len(systems)) +ax.bar(x_pos, performance, align='center', color='gray', ecolor='black') +ax.set_xticks(x_pos) +ax.set_xticklabels(systems) +ax.set_ylabel("MLFMM Time (ms)") +# ax.set_title('How fast do you want to go today?') +plt.savefig('figures/test.pdf') \ No newline at end of file diff --git a/cem17_template.tex b/main.tex similarity index 100% rename from cem17_template.tex rename to main.tex