【发布时间】:2020-10-12 05:51:41
【问题描述】:
如何将我的 y 轴设置在 0 到 100 之间?这是我的代码:
fig, ax = plt.subplots()
plt.plot(history.history['accuracy'], marker="*", label='Train accuracy', color='blue')
plt.plot(history.history['val_accuracy'], marker="o", label='Test accuracy', color='red')
plt.title('Plot' )
plt.ylabel('yaxis')
plt.xlabel('xaxis')
plt.legend(loc='best')
plt.show()
【问题讨论】:
标签: python python-3.x matplotlib