This commit is contained in:
2020-01-15 13:05:00 -05:00
parent c690d56cb9
commit 955f1def0b
2 changed files with 24 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ class Map(object):
# and neighbor regions. We can actually cluster in O(n) when we know how
# high and wide the clusters are. Once we have that working we go from
# there
CLUSTER_SIZE = 3 # How many points we want per cluster.
CLUSTER_SIZE = 5 # How many points we want per cluster.
def __init__(self):
pass
@@ -131,7 +131,7 @@ class Map(object):
def plot_points():
for i, p in enumerate(points):
plt.plot(p.x, p.y, '')
plt.text(p.x, p.y, ' ' + str(p))
# plt.text(p.x, p.y, ' ' + str(p))
for nb, _ in p.neighbors:
# plt.plot([p.x, nb.x], [p.y, nb.y], 'r--')
pass