问题:
python在集群或服务器上运行保存图片时报错:failed to get the current screen resources。
解决方案:
使用Agg后端,在程序最开始加上:
import matplotlib as mpl
mpl.use("Agg")
python在集群或服务器上运行保存图片时报错:failed to get the current screen resources。
使用Agg后端,在程序最开始加上:
import matplotlib as mpl
mpl.use("Agg")