import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4], [-4, -3, -2, -1]) plt.show()
由图片可以看出,是两个列表的每一项对应出一个点