{"id":9051,"library":"japanize-matplotlib","title":"Japanize Matplotlib","description":"Japanize Matplotlib (version 1.1.3) is a Python library that automatically configures Matplotlib to display Japanese fonts correctly. It simplifies the process of handling Japanese text in plots by applying a default font (IPAexGothic) to Matplotlib's settings upon import. The library is currently in maintenance mode, with the last major update in October 2020.","status":"maintenance","version":"1.1.3","language":"python","source_language":"en","source_url":"https://github.com/uehara1414/japanize-matplotlib","tags":["matplotlib","japanese","fonts","visualization","plotting"],"install":[{"cmd":"pip install japanize-matplotlib","lang":"bash","label":"PyPI"},{"cmd":"conda install -c uehara1414 japanize-matplotlib","lang":"bash","label":"Conda (uehara1414 channel)"}],"dependencies":[{"reason":"Core plotting library that this package extends for Japanese font support.","package":"matplotlib"}],"imports":[{"wrong":"import japanize-matplotlib","symbol":"japanize_matplotlib","correct":"import japanize_matplotlib"}],"quickstart":{"code":"import matplotlib.pyplot as plt\nimport japanize_matplotlib\n\nplt.plot([1, 2, 3, 4])\nplt.xlabel('簡単なグラフ (Simple Graph)')\nplt.ylabel('値 (Value)')\nplt.title('日本語タイトル (Japanese Title)')\nplt.grid(True)\nplt.show()","lang":"python","description":"Import `japanize_matplotlib` after `matplotlib.pyplot` to automatically configure Japanese font display. Then, create your plots as usual, and Japanese text will be rendered correctly."},"warnings":[{"fix":"Ensure `import japanize_matplotlib` occurs *after* other plotting library initializations (e.g., `sns.set()`), or explicitly call `japanize_matplotlib.japanize()` after such calls. Alternatively, configure the other library to use 'IPAexGothic' font directly (e.g., `sns.set(font='IPAexGothic')`).","message":"Importing `japanize_matplotlib` might be ineffective if other plotting libraries (e.g., Seaborn) are initialized afterward and override Matplotlib's font settings.","severity":"gotcha","affected_versions":"All versions"},{"fix":"To prevent removal, add a `# noqa: F401` comment to the import line (e.g., `import japanize_matplotlib # noqa: F401`) or explicitly call `japanize_matplotlib.japanize()` in your code.","message":"Linters or code formatters may remove the `import japanize_matplotlib` line if they deem it unused, as its effect is side-dependent.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"search_vec":"'1.1.3':6 '2020':56 'appli':31 'automat':12 'configur':13 'correct':19 'current':45 'default':33 'display':16 'font':18,34,59 'handl':25 'import':41 'ipaexgoth':35 'japan':1,3 'japanes':17,26,58 'last':51 'librari':10,43 'mainten':47 'major':52 'matplotlib':2,4,14,37,57 'mode':48 'octob':55 'plot':29,61 'process':23 'python':9 'set':39 'simplifi':21 'text':27 'updat':53 'upon':40 'version':5 'visual':60","created_at":"2026-04-16T18:48:12.871697+00:00","updated_at":"2026-04-16T18:48:12.871697+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpv3qj4j_h/venv/lib/python3.12/site-packages/japanize_matplotlib/__init__.py\", line 1, in <module>\n    from japanize_matplotlib.japanize_matplotlib import japanize, get_font_path, get_font_ttf_path\n  File \"/tmp/t"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.1.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/uehara1414/japanize-matplotlib","docs":null,"changelog":null,"pypi":"https://pypi.org/project/japanize-matplotlib/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}