legend 传奇、图例。
plt.legend()的作用:
在plt.plot() 定义后plt.legend() 会显示该 label 的内容,否则会报error: No handles with labels found to put in legend.
plt.plot(result_price, color = 'red', label = 'Training Loss')
legend作用位置:下图红圈处。
legend 传奇、图例。
plt.legend()的作用:
在plt.plot() 定义后plt.legend() 会显示该 label 的内容,否则会报error: No handles with labels found to put in legend.
plt.plot(result_price, color = 'red', label = 'Training Loss')
legend作用位置:下图红圈处。