Browse Source

removing unneeded legends

tarfeef101 6 năm trước cách đây
mục cha
commit
bdd2527eb7
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. BIN
      a2/hill_climbing.pdf
  2. 2 2
      a2/tsp_local.py

BIN
a2/hill_climbing.pdf


+ 2 - 2
a2/tsp_local.py

@@ -284,8 +284,8 @@ def main():
         axis_twin = axes[i].twinx()
         axis_twin.plot(range(1, 11), solution_scores[i], label = "Solution Cost/Distance", color = 'r')
         axis_twin.set_ylabel("Distance in units", color = 'r')
-        axes[i].legend()
-        axis_twin.legend()
+        #axes[i].legend()
+        #axis_twin.legend()
 
     plt.savefig("hill_climbing.pdf")