解决Matplotlib画图时中文显示为“口口”的问题

将simhei.ttf文件拷贝至

~/anaconda3/envs/tensorflow/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf

路径下即可。

Ubuntu18中,使用Python的matplotlib库设置simhei.ttf中文字体并显示_weixin_47216116的博客-CSDN博客_python simhei

猜你喜欢

转载自blog.csdn.net/weixin_44709392/article/details/124055843
今日推荐