diff options
Diffstat (limited to 'image.py')
| -rwxr-xr-x | image.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/image.py b/image.py new file mode 100755 index 0000000..199ba9f --- /dev/null +++ b/image.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import matplotlib.pyplot as plt + +x = [] +y = [] + +with open('test') as fin: + for line in fin.read().splitlines(): + x_, y_ = list(map(int, line.strip().split(','))) + x.append(x_) + y.append(y_) + +plt.plot(x, y) +plt.xlabel('x') +plt.ylabel('y') +plt.show() |
