📜  matplotlib 画线 x1, y1 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:03.468000             🧑  作者: Mango

代码示例1
import matplotlib.pyplot as plt
x1, y1 = [-1, 12], [1, 10]
x2, y2 = [-1, 10], [3, -1]
plt.xlim(0, 8), plt.ylim(-2, 8)
plt.plot(x1, y1, x2, y2, marker = 'o')
plt.show()