---
# System prepended metadata

title: Matplotlib with Tranditional Chinese

---

# Matplotlib with Tranditional Chinese

## Mac User
https://medium.com/@hoishing/using-chinese-characters-in-matplotlib-5c49dbb6a2f7

## Ubuntu User
Download `Noto Sans CJK TC` from https://www.google.com/get/noto/

Rebuild and check
``` python
import matplotlib.font_manager
matplotlib.font_manager._rebuild()
print(list(sorted([f.name for f in font_manager.fontManager.ttflist])))
```

Usage
Add this line before plot.
``` python
matplotlib.rcParams['font.family'] = ['Noto Sans CJK TC']
```