blob: d9a9c018089832e8c21620d97ae7c5032534280b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import matplotlib.pyplot as plt
fig, axs = plt.subplots(5, 5)
cnt = 0
x = []
y = []
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)
x = []
y = []
plt.show()
|