多是由环境的兼容性导致。
解决:matplotlib切换图形界面显示终端为TkAgg。
具体,将
import matplotlib.pyplot as plt
改为
import matplotlib
matplotlib.use(‘TkAgg’)
import matplotlib.pyplot as plt
多是由环境的兼容性导致。
解决:matplotlib切换图形界面显示终端为TkAgg。
具体,将
import matplotlib.pyplot as plt
改为
import matplotlib
matplotlib.use(‘TkAgg’)
import matplotlib.pyplot as plt