需添加:
import matplotlib as mpl
mpl.use('Agg')
而且必须添加在import matplotlib.pyplot之前,否则无效
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/
Matplotlib之无GUI时的解决办法
阅读 89
2022-07-18
需添加:
import matplotlib as mpl
mpl.use('Agg')
而且必须添加在import matplotlib.pyplot之前,否则无效
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/
相关推荐
精彩评论(0)