Procházet zdrojové kódy

hopefully titles are at the top now

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

binární
a2/hill_climbing.pdf


+ 2 - 2
a2/tsp_local.py

@@ -288,7 +288,7 @@ def main():
             
     with PdfPages("hill_climbing.pdf") as pdf:
         figure, axes = plt.subplots(3, 1, True)
-        plt.title("Hill Climbing")
+        figure.suptitle("Hill Climbing")
         
         for i in range(0, 3):
             axes[i].plot(range(1, 11), solution_steps[i], label = "Steps to Solution", color = 'b')
@@ -303,7 +303,7 @@ def main():
         plt.close()
         
         figure, axes = plt.subplots(3, 1, True)
-        plt.title("Hill Climbing Cont.")
+        figure.suptitle("Hill Climbing Cont.")
         
         for i in range(0, 3):
             axes[i].plot(range(1, 11), good_sol_counts[i], color = 'b')