rename to main, add figure script

This commit is contained in:
Carl Pearson
2017-05-04 14:13:35 -05:00
parent ef31c330b1
commit 5df077621d
5 changed files with 46 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*.aux
*.log
*.swp

27
Makefile Normal file
View File

@@ -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)

Binary file not shown.

16
figures/plots.py Normal file
View File

@@ -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')