skillfed

matplotlib-fontja

matplotlibを日本語表示に対応させます。

matplotlib-fontja v1.1.0 197.0K downloads/30d#9,772 on PyPI85
Permissive license MIT AND IPA AGING released

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-fontja

uv

uv add matplotlib-fontja

poetry

poetry add matplotlib-fontja

Installing 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

Development Status :: 5 - Production/StableFramework :: MatplotlibIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseNatural Language :: JapaneseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Visualization

Tags

japanese text matplotlibmatplotlib japanese fontjapanize matplotlib plotsjapanese characters in chartsmatplotlib cjk supportjapanese labels graphs
japanese-localizationmatplotlib-extension

More Visualization packages