UserWarning: Glyph 21435 (\N{CJK UNIFIED IDEOGRAPH-53BB}) missing from font(s) DejaVu Sans.
matplotlib警告,对于这种警告。原因是:matplotlib使用的默认字体DejaVuSans不支持中文字符,因此在渲染带有中文的图表时会出现警告。此时只需要在库文件中,加入两行代码:importmatplotlib.pyplotaspltfrommatplotlibimportrcParams#设置字体为SimHei(黑体),支持中文rcParams['font.sans-serif']