{"library":"matplotlib-fontja","title":"Matplotlib Japanese Fonts","description":"matplotlib-fontja is a Python library designed to easily enable Japanese character display in Matplotlib plots. It automatically detects available Japanese fonts on your system, updates Matplotlib's font cache, and configures `rcParams` to use them. The current version is 1.1.0, with updates typically focusing on compatibility and font detection improvements.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install matplotlib-fontja"],"cli":null},"imports":["import matplotlib_fontja"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import matplotlib.pyplot as plt\nimport matplotlib_fontja\n\n# Configure Matplotlib to use Japanese fonts\nmatplotlib_fontja.set_font()\n\n# Create a simple plot with Japanese text\nplt.figure(figsize=(8, 6))\nplt.plot([1, 2, 3], [1, 4, 9])\nplt.title('日本語タイトル (Japanese Title)')\nplt.xlabel('X軸 (X-axis)')\nplt.ylabel('Y軸 (Y-axis)')\nplt.grid(True)\nplt.show()","lang":"python","description":"This quickstart demonstrates how to import `matplotlib-fontja`, apply its font configuration using `set_font()`, and then create a Matplotlib plot that correctly displays Japanese characters.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}