【发布时间】:2020-06-24 04:00:07
【问题描述】:
import matplotlib.pyplot as plt
x = ([1, 2, 3, 4], [1, 4, 9, 16], "ro")
plt.plot(x)
plt.axis([0, 6, 0, 20])
plt.show()
这段代码应该可以工作,但不能。
【问题讨论】:
-
为什么这不起作用?你期望它做什么,它实际上做了什么?
标签: python python-3.x list matplotlib graph