一、matplotlib.use(‘Agg’)的作用
作用:是控制绘图不显示
使用如下
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
注意:matplotlib.use(‘agg’)必须在本句执行import matplotlib.pyplot as plt前运行
二、Reference
https://www.cnblogs.com/happystudyeveryday/p/13862510.html