瀏覽代碼

hopefully no overlaps now

tarfeef101 6 年之前
父節點
當前提交
2b34916035
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 二進制
      a2/hill_climbing.pdf
  2. 3 0
      a2/tsp_local.py

二進制
a2/hill_climbing.pdf


+ 3 - 0
a2/tsp_local.py

@@ -299,6 +299,8 @@ def main():
             axis_twin.set_ylabel("Solution Quality", color = 'r')
             #axes[i].legend()
             #axis_twin.legend()
+
+        plt.tight_layout()
         pdf.savefig()
         plt.close()
         
@@ -310,6 +312,7 @@ def main():
             axes[i].set_xlabel("Problem Instance w/ " + str(i + 14) + " cities")
             axes[i].set_ylabel("% of runs <= NEOS", color = 'b')
             
+        plt.tight_layout()
         pdf.savefig()
         plt.close()