Explorar o código

hopefully titles are at the top now

tarfeef101 %!s(int64=6) %!d(string=hai) anos
pai
achega
e7917eb875
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. BIN=BIN
      a2/hill_climbing.pdf
  2. 2 2
      a2/tsp_local.py

BIN=BIN
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')