matplotlib-fontja
matplotlibを日本語表示に対応させます。
What it is and what it does
matplotlib-fontja is a fork of japanize-matplotlib that configures matplotlib to display Japanese text correctly by automatically setting the IPAexGothic font. It is designed for Python 3.7 through 3.13 and works with matplotlib 3.0 and later. The package bundles the IPAexGothic font (Ver.004.01) and applies it when imported, allowing developers to label axes, titles, and annotations in Japanese without manual font configuration.
The typical workflow is to import matplotlib_fontja after matplotlib but before drawing, which registers the font and updates matplotlib's configuration. The package handles the common case where Japanese labels would otherwise render as boxes or missing characters. It is most useful in scientific and educational contexts where plots need bilingual or Japanese-only labeling.
Use it for:
- Label axes and titles in Japanese on scientific plots without manual font setup.
- Create educational visualizations with Japanese text for Japanese-speaking audiences.
- Generate reports or publications with matplotlib charts that include Japanese annotations.
- Quickly prototype data visualizations in Jupyter notebooks with Japanese labels.
- Render Japanese legends and text in seaborn plots after calling japanize().
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Enables Japanese text rendering in matplotlib plots by automatically configuring the IPAexGothic font after import.
Yes, if you need Japanese text in matplotlib plots. Install friction is minimal, the license is permissive, and there are no known vulnerabilities. The aging maintenance status (477 days since last release) is a minor concern for long-term compatibility, but the package is stable and tested across Python 3.7–3.13 and matplotlib 3.0–3.10. Suitable for educational and scientific use where Japanese labeling is required.
Install
matplotlib-fontja on PyPI
pip
pip install matplotlib-fontjauv
uv add matplotlib-fontjapoetry
poetry add matplotlib-fontjaInstalling matplotlib-fontja
Before you install
Low friction; pure Python wheel with only matplotlib as a runtime dependency. Maintenance status is aging (477 days since last release), but the package is marked stable and has received recent commits.
License in practice
Dual-licensed under MIT and IPA Font License. The permissive MIT covers the code; the IPA license governs the bundled IPAexGothic font (Ver.004.01) and requires acceptance of its terms.
Quickstart
pip install matplotlib-fontja
import matplotlib.pyplot as plt
import matplotlib_fontja
plt.plot([1, 2, 3, 4])
plt.xlabel('日本語')
plt.show()
matplotlib must be installed first; font configuration from other libraries (e.g., seaborn) may override the japanization and require calling matplotlib_fontja.japanize() after such calls.
Verify before relying
- Whether the package works reliably with matplotlib versions beyond 3.10 (fact sheet shows testing up to 3.10 but classifiers list support for later versions).
- Current maintenance cadence and likelihood of future updates for new Python/matplotlib releases.
Package facts
| License | MIT AND IPA (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — matplotlib |
| Maintenance | aging — 477 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 196,974/month — #9,772 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: matplotlib_fontja-1.1.0-py2.py3-none-any.whl
Tags
More Visualization packages
matplotlib creates static, animated, and…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
plotlyPlotly is an interactive, browser-based…
permissive · top 1,000 on PyPI
graphvizGenerates DOT language source code for graph…
permissive · top 1,000 on PyPI
streamlitStreamlit transforms Python scripts into…
permissive · top 1,000 on PyPI
leatherLeather is a lightweight Python charting…
permissive · top 1,000 on PyPI
japanize-matplotlibEnables matplotlib to display Japanese text in…
permissive · top 15,000 on PyPI
mplfontsManages Matplotlib fonts and solves CJK…
permissive · top 15,000 on PyPI
koreanize-matplotlibAutomatically configures matplotlib to display…
permissive · top 15,000 on PyPI
adjustTextAutomatically repositions text labels on…
permissive · top 5,000 on PyPI
pymupdf-fontsProvides a collection of optional fonts…
unclear · top 15,000 on PyPI
matplotlib-inlineEnables matplotlib figures to display inline…
permissive · top 1,000 on PyPI
lovelyplotsLovelyPlots provides matplotlib style sheets…
permissive · top 15,000 on PyPI
pyfigletRenders ASCII text as ASCII art using a variety…
permissive · top 5,000 on PyPI
mplhep-dataDistributes fonts and data files for the mplhep…
permissive · top 15,000 on PyPI
SciencePlotsProvides a collection of Matplotlib style…
permissive · top 15,000 on PyPI