Happy清子 发表于 2019-12-2 23:04:05

Backend TkAgg

Backend TkAgg is interactive backend. Turning interactive mode on.

matplotlib的默认backend是TkAgg,而FltkAgg, GTK, GTKAgg, GTKCairo, TkAgg , Wx or WxAgg这几个backend都要求有GUI图形界面的。
[*]

import matplotlib.pyplot as plt


[*]

Backend TkAgg is interactive backend. Turning interactive mode on.


[*]




[*]

plt.get_backend()


[*]

Out[3]: u'TkAgg'


在ssh等远程连接无图形界面时,指定不需要GUI的backend(Agg, Cairo, PS, PDF or SVG)
[*]

import matplotlib.pyplot as plt


[*]

plt.switch_backend('agg')





Happy清子 发表于 2019-12-2 23:04:15

https://blog.csdn.net/mangobar/article/details/82916995

Happy清子 发表于 2019-12-2 23:04:29

https://blog.csdn.net/Z_lbj/article/details/80418183
页: [1]
查看完整版本: Backend TkAgg