This commit is contained in:
UmbertoJr 2019-11-04 08:08:20 +01:00
parent aafe6c1a09
commit 0428a63b38
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ class Instance:
plt.figure(figsize=(8, 8))
plt.title(self.name)
plt.scatter(self.points[:, 1], self.points[:, 2])
for i, txt in enumerate(np.arange(self.nPoints)): # tour_found[:-1]
plt.annotate(txt, (self.points[i, 1], self.points[i, 2]))
plt.show()
@staticmethod