title: Matplotlib - 中文字体
categories:
- python
- Matplotlib
tags: - python
- Matplotlib
- Computer Drawing
首先,Matplotlib本身是不支持中文的。
因此我们需要自己下载中文字体;
方法:
使用思源黑体,思源黑体是 Adobe 与 Google 推出的一款开源字体。
下载地址:
官网:https://source.typekit.com/source-han-serif/cn/
Github地址:https://github.com/adobe-fonts/source-han-sans/tree/release/OTF/SimplifiedChinese
可以下载个 OTF 字体,比如 SourceHanSansSC-Bold.otf,将该文件文件放在当前执