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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file chineseize-matplotlib-1.2.tar.gz.

File metadata

  • Download URL: chineseize-matplotlib-1.2.tar.gz
  • Upload date:
  • Size: 9.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for chineseize-matplotlib-1.2.tar.gz
Algorithm Hash digest
SHA256 af670e54f3f03d0fb70df173d3f594c94d196e59f1ea60603307c3d45c5c1131
MD5 f812975c566313c7c860c89eb7e002e5
BLAKE2b-256 6811541ed13c47a45428478916955a4a7308704328a4aceca9c41f21901e78b4

See more details on using hashes here.

File details

Details for the file chineseize_matplotlib-1.2-py3-none-any.whl.

File metadata

  • Download URL: chineseize_matplotlib-1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for chineseize_matplotlib-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55562a2544e4a1bed15673e7bcf925e1cff631a43f69d67ca6045014dfb02c05
MD5 ea4b4d207b6d552d0b1f2c87db7e55c3
BLAKE2b-256 87f69c68aee3950450c1ff3c9ab995451b3c1fec7d43109d8bfa6ad064b161a4

See more details on using hashes here.

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