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 details)

Uploaded Source

File details

Details for the file japanize-matplotlib-1.1.0.tar.gz.

File metadata

  • Download URL: japanize-matplotlib-1.1.0.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for japanize-matplotlib-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2b9bbca9993a2bdaf17c4bc206e54a4d902d153ce41131a43e5df98c26c370b5
MD5 657142688b0f6d5f554a0d35493cf8b1
BLAKE2b-256 70f0fd0c73b76ae17d85b540561305d3625a601cfbf8ec1bb240b98d64b73a9d

See more details on using hashes here.

Supported by

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