Skip to content

Commit d9ef76a

Browse files
committed
Added simple script.
1 parent 505ab7d commit d9ef76a

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
VENV=.venv
2+
PYTHON=$(shell which python3.4)
3+
4+
virtual-env:
5+
$(PYTHON) -m venv $(VENV)
6+
7+
deps:
8+
. $(VENV)/bin/activate && \
9+
pip3.4 install -r requirements.txt
10+
11+
setup: virtual-env deps
12+
13+
run:
14+
. $(VENV)/bin/activate && \
15+
ipython notebook notebooks/mmpl-preview.ipynb
16+
17+
clean:
18+
rm -rf $(VENV)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
matplotlib

simple-line.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import matplotlib.pyplot as plt
2+
3+
4+
plt.plot([1,2,3,4])
5+
plt.ylabel('some numbers')
6+
plt.savefig("simple-line.png")

0 commit comments

Comments
 (0)