Browse Source

hopefully axes?

tarfeef101 6 years ago
parent
commit
f3d991bee6
2 changed files with 1 additions and 1 deletions
  1. BIN
      a2/hill_climbing.pdf
  2. 1 1
      a2/tsp_local.py

BIN
a2/hill_climbing.pdf


+ 1 - 1
a2/tsp_local.py

@@ -283,7 +283,7 @@ def main():
         axis_twin = axes[i].twinx()
         axis_twin.plot(range(1, 11), solution_scores[i], label = "Solution Cost/Distance")
         axis_twin.set_ylabel("Distance in units", color = 'r')
-        axex[i].legend()
+        axes[i].legend()
 
     #axes.legend()
     plt.savefig("hill_climbing.pdf")