Skip to main content

matplotlibのフォント設定を自動で日本語化する

Project description

PyPI version

japanize-matplotlib

matplotlib を日本語表示に対応させる

利用方法

matplotlibをimportした後、japanize_matplotlibをimportする。

import matplotlib.pyplot as plt
import japanize_matplotlib

plt.plot([1, 2, 3, 4])
plt.xlabel('簡単なグラフ')
plt.show()

demo

インストール

# pipenvで
pipenv install japanize-matplotlib

# またはpipで
pip install japanize-matplotlib

利用フォント

IPAフォントのIPAexゴシック(Ver.003.01)を利用しています。 利用にあたってはIPAフォントライセンスv1.0に同意してください。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

japanize-matplotlib-1.1.0.tar.gz (4.1 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page