解决ssh连接远程客户端,matplotlib报QXcbConn
2017-03-14 本文已影响486人
Ra1nyHouse
使用use命令即可,必须放在调用pyplot前面!
不要使用show()
函数,使用save()
函数
import matplotlib
matplotlib.use('Agg')
使用use命令即可,必须放在调用pyplot前面!
不要使用show()
函数,使用save()
函数
import matplotlib
matplotlib.use('Agg')