“matplotlib display text must have all code points < 128 or use Unicode strings”解决方法

import sys
reload(sys)
sys.setdefaultencoding('utf-8')

插入以上代码,便可解决。

原文地址:https://www.cnblogs.com/Climbing-Snail/p/6555217.html