import matplotlib.pyplot as plt
plt.xlim(0, 4)
y = [2, 2, 2]
x = [1, 2, 3]
plt.plot(x, y, ls='dashed', label='train')
y = [1, 1]
x = [1, 4]
plt.plot(x, y, label='c')
plt.legend()
plt.show()
Python一图多线脚本
于 2024-07-17 10:12:19 首次发布