在只含命令行的服务器上使用matplotlib画图

不这样写会报错could not find or load the Qt platform plugin “xcb”

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt

发布了43 篇原创文章 · 获赞 14 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_41545780/article/details/90179102