Matplotlib(3)
2017-06-03 本文已影响0人
dasdadf

获取matplotlib的配置文件的路径
import matplotlib
print matplotlib.matplotlib_fname()
对于在没有GUI的服务器,备份配置文件之后,更改其中的backend
为Agg
,便可以后台输出了。
import matplotlib
print matplotlib.matplotlib_fname()
对于在没有GUI的服务器,备份配置文件之后,更改其中的backend
为Agg
,便可以后台输出了。