Browse Source

rows instead of columns

tarfeef101 6 years ago
parent
commit
37424e9c32
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

@@ -274,7 +274,7 @@ def main():
             steps.append(prob_steps / 100.0)
             scores.append(prob_scores / 100.0)
             
-    figure, axes = plt.subplots(1, 3, True)
+    figure, axes = plt.subplots(3, 1, True)
             
     for i in range(0, 3):
         axes[i].plot(range(1, 11), solution_steps[i], label = "Steps to Solution")