pylab突然间不能使用了,请帮忙!
前几天这个代码运行好好的,今天一下子不能运行,import pylab as pl这断报错,肯请帮助。
import pylab as pl
x = [100, 50, 80, 70]
y = [1, 2, 3, 4]
‘’’
plot参数说明:
x: x轴坐标列表
y: y轴坐标列表
marker: 点型
linestyle: 连接线型
markerfacecolor: 颜色
‘’’
pl.plot(x, y, marker=‘o’,linestyle=’–’,markerfacecolor=‘r’)
pl.axis([0, 110,0, 6])
pl.xlabel(‘x_data’)
pl.ylabel(‘y_data’)
pl.title(‘test plot’)
print(x,y)
pl.show()