matplotlib怎么显示中文

2025-11-09 22:33:29

1、找到C盘中的windows文件。

matplotlib怎么显示中文

2、打开windows文件夹。

matplotlib怎么显示中文

3、打开fonts文件夹。

matplotlib怎么显示中文

4、选择其中一个中文字体。

matplotlib怎么显示中文

1、重新打开一个文件资源管理器。可以按win+E快捷键。

matplotlib怎么显示中文

2、打开anaconda的安装路径。

matplotlib怎么显示中文

3、在安装路径文件夹中打开pkgs文件夹。

matplotlib怎么显示中文

4、打开matplotlib版本的文件夹。

matplotlib怎么显示中文

5、打开Lib文件夹。

matplotlib怎么显示中文

6、打开site-packages文件夹。

matplotlib怎么显示中文

7、打开matplotlib文件夹。

matplotlib怎么显示中文

8、打开mpl-data文件夹。

matplotlib怎么显示中文

9、打开fonts文件夹。

matplotlib怎么显示中文

10、打开ttf文件夹。

matplotlib怎么显示中文

11、打开ttf文件夹结构如图示。

matplotlib怎么显示中文

1、在系统自带的字体文件中复制一个中文字体。

matplotlib怎么显示中文

2、在ttf文件夹中粘贴复制的字体文件。

matplotlib怎么显示中文

3、粘贴的字体文件如图示。

matplotlib怎么显示中文

1、回到mpl-data文件夹目录下。

matplotlib怎么显示中文

2、用记事本打开matplotlibrc文件。

matplotlib怎么显示中文

3、找到#font开头的位置。

matplotlib怎么显示中文

4、在#font.sans-serif后添加字体文件名。

matplotlib怎么显示中文

5、找到axes.unicode_minus处。

matplotlib怎么显示中文

6、将True修改为False,可以解决将负号显示为方块的问题。

matplotlib怎么显示中文

7、修改完毕保存并关闭配置文件。

8、重启jupyter

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢