summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.py b/main.py
index d9a9c01..9ef6936 100644
--- a/main.py
+++ b/main.py
@@ -8,11 +8,11 @@ with open('index.html') as f:
for l in f.readlines():
if l.startswith('<div'):
s = l.split(':')
- y.append(10 - int(float(s[3].split('px')[0]) / 50))
- x.append(int(float(s[4].split('px')[0]) / 50))
- cnt += 1
- if cnt % 80 == 0:
- axs[((cnt - 1) // 80) // 5, ((cnt - 1) // 80) % 5].scatter(x, y)
+ y.append(10 - float(s[3].split('px')[0]) // 50)
+ x.append(float(s[4].split('px')[0]) // 50)
+ if cnt % 80 == 79:
+ axs[(cnt // 80) // 5, (cnt // 80) % 5].scatter(x, y)
x = []
y = []
+ cnt += 1
plt.show()