Skip to main content

自动设置matplotlib的中文字体

Project description

chineseize-matplotlib

自动设置 matplotlib 中文字体

利用方法

import matplotlib.pyplot as plt
import chineseize_matplotlib

plt.plot([1, 2, 3, 4])
plt.xlabel('简单图表')
plt.show()

安装

# pipenv
pipenv install chineseize-matplotlib

# pip
pip install chineseize-matplotlib

##使用字体

使用IPA字体的IPAex黑体(Ver.003.01)。

利用进程[ipa字体授权v 1.0] (https://github.com/cndeng/chineseize-matplotlib/blob/master/chineseize_matplotlib/fonts/ipa_font_license_agreement_v1.0.txt)请同意。

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

chineseize-matplotlib-1.2.tar.gz (9.2 MB view hashes)

Uploaded Source

Built Distribution

chineseize_matplotlib-1.2-py3-none-any.whl (9.2 MB view hashes)

Uploaded Python 3

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