绘图(二)
plt.plot(x, y, linewidth=1, linestyle="solid", label="loss")
1. 图标题
plt.title('Loss Roc')
2. 图例设置
位置
- lower
- upper
- center
- left
- 0表示best自动调整
边框
- frameon 图例边框 True/False
- edgecolor 图例边框颜色
- facecolor 图例背景颜色,若无边框,参数无效
标题
- title 图例标题
plt.legend(loc='lower left', frameon=False, edgecolor='blue', facecolor='blue', title='LSTM模型')