소스 검색

hopefully titles are at the top now

tarfeef101 6 년 전
부모
커밋
e7917eb875
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. BIN
      a2/hill_climbing.pdf
  2. 2 2
      a2/tsp_local.py

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