删除缓存
C:\Users\Ins24-5490-1625>python
Python 3.8.6rc1 (tags/v3.8.6rc1:08bd63d, Sep 7 2020, 23:10:23) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> print(matplotlib.matplotlib_fname())
C:\Users\Ins24-5490-1625\AppData\Roaming\Python\Python38\site-packages\matplotlib\mpl-data\matplotlibrc
>>> exit()
C:\Users\Ins24-5490-1625>rmdir .matplotlib /s
.matplotlib, 是否确认(Y/N)? y修改matplotlibrc文件C:\Users\Ins24-5490-1625\AppData\Roaming\Python\Python38\site-packages\matplotlib\mpl-data/matplotlibrc 以下三项
font.family : sans-serif # 去掉注释
font.sans-serif : SimHei # 去掉注释,并增加SimHei
axes.unicode_minus : False # 去掉注释,并修改为False