【发布时间】:2015-09-03 00:20:49
【问题描述】:
我想在 x=0 到 x ValueError: Argument dimensions are incompatible。我做错了什么?
import matplotlib.pyplot as plt
fig, (ax1) = plt.subplots(1,1)
x = [1,2,3]
y=[10,20,30]
ax1.plot(x, y)
ax1.fill_between(x, 0, y, where=x<3, facecolor='green', interpolate=True)
plt.show()
【问题讨论】:
标签: python python-2.7 matplotlib