import matplotlib.pyplot as plt
基本绘图plot
plot([x], y, [fmt], data=None, **kwargs)
plot([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
[fmt]
可以用来设置线条样式和颜色
plt.plot中的data参数可以为一个字典或者DataFrame对象,然后子啊x和y上指定列的名字。
plt.plot('a','b','',data = data1 )
y1 = [np.random.randint(0,10) for x in range(10)]
y2 = [np.random.randint(0,10) for x in range(10)]
lines = plt.plot