This commit is contained in:
UmbertoJr 2019-11-04 08:08:20 +01:00
parent aafe6c1a09
commit 0428a63b38

View file

@ -59,6 +59,8 @@ class Instance:
plt.figure(figsize=(8, 8)) plt.figure(figsize=(8, 8))
plt.title(self.name) plt.title(self.name)
plt.scatter(self.points[:, 1], self.points[:, 2]) 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() plt.show()
@staticmethod @staticmethod