blank/main.py

19 lines
498 B
Python
Raw Normal View History

2024-03-25 02:16:06 +00:00
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(':')
2024-03-25 19:02:49 +00:00
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)
2024-03-25 02:16:06 +00:00
x = []
y = []
2024-03-25 19:02:49 +00:00
cnt += 1
2024-03-25 02:16:06 +00:00
plt.show()