[python] view plain copy print?在CODE上查看代码片派生到我的代码片
import matplotlib as mpl
mpl.use(‘Agg’)
而且必须添加在import matplotlib.pyplot之前,否则无效
最后在plt.draw后面加上
[python] view plain copy print?在CODE上查看代码片派生到我的代码片
plt.savefig(“/home/yourname/picFaster.jpg”)
[python] view plain copy print?在CODE上查看代码片派生到我的代码片
import matplotlib as mpl
mpl.use(‘Agg’)
[python] view plain copy print?在CODE上查看代码片派生到我的代码片
plt.savefig(“/home/yourname/picFaster.jpg”)