summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorAnthony Wang2024-03-24 21:16:06 -0500
committerAnthony Wang2024-03-24 21:16:06 -0500
commit88ac4ce7dc40f66755414d551b181bc43f5cf4d0 (patch)
tree93ac566785029cf1f19c6b21c6a54966b129d9ea /main.py
parent64dcb8fed4366faa084780f4191917b3989a1a7a (diff)
Add main.py solver
Diffstat (limited to 'main.py')
-rw-r--r--main.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..d9a9c01
--- /dev/null
+++ b/main.py
@@ -0,0 +1,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()