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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page