diff options
| author | KunoiSayami <[email protected]> | 2022-06-09 02:42:07 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2022-06-09 02:42:07 +0800 |
| commit | 55b3c4bb5b8ad9ef23eec125048ff8e4fea4f7fe (patch) | |
| tree | 13c74de3965820a6203264dbbefb3f6312733a88 /image.py | |
| parent | 26721db77103fc749fc4a1ce2d85cdf7c1248780 (diff) | |
feat: Support multiple target and show image script
Signed-off-by: KunoiSayami <[email protected]>
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() |
