自动设置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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for chineseize-matplotlib-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a76a2de91518472aee4efbf6855ca2c04662560864983927ed2a041768bfa6 |
|
MD5 | 34083b58ab7e6c474ed96087d9fad9e1 |
|
BLAKE2b-256 | 0960a0ae3e8c12f64a81baeeeb3f6331349de33588bd1fe31802a1ec02bd1245 |
Close
Hashes for chineseize_matplotlib-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 983e3617daf9d45391aa511408e76b063a814b882de003d4f882de5aed3e8db7 |
|
MD5 | d5f3b158222c625f85d7e23e82481e2a |
|
BLAKE2b-256 | 2e5bc59f7fec272287f7d350f9032f3d003bd0edb4c6faa3ffc51e37584b5a76 |