rename to main, add figure script
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.aux
|
||||
*.log
|
||||
*.swp
|
27
Makefile
Normal file
27
Makefile
Normal 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
16
figures/plots.py
Normal 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')
|
Reference in New Issue
Block a user