@GustavW/

plottest

Python 2.7

No description

fork
loading
Files
  • main.py
  • graph.png
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
import matplotlib as mpl
mpl.use('Agg')
import numpy as np
import matplotlib.pyplot as plt

time = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
vec = np.array([15, 12, 22, 18, 19, 17, 14, 25, 6, 10])

plt.plot(time, vec)
plt.savefig('graph.png')