Procházet zdrojové kódy

hopefully some nice graphs now

tarfeef101 před 6 roky
rodič
revize
10ae15493a
2 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. binární
      a2/hill_climbing.pdf
  2. 1 1
      a2/tsp_local.py

binární
a2/hill_climbing.pdf


+ 1 - 1
a2/tsp_local.py

@@ -291,7 +291,7 @@ def main():
         axes[i][0].plot(range(1, 11), solution_steps[i], label = "Steps to Solution", color = 'b')
         axes[i][0].set_xlabel("Problem Instance w/ " + str(i + 14) + " cities")
         axes[i][0].set_ylabel("Steps Taken", color = 'b')
-        axis_twin = axes[i].twinx()
+        axis_twin = axes[i][0].twinx()
         axis_twin.plot(range(1, 11), solution_scores[i], label = "Solution Quality", color = 'r')
         axis_twin.set_ylabel("Solution Quality", color = 'r')
         #axes[i].legend()