Skip to main content

Zh-Plot: 一行代码搞定 Python 图表中文展示

Python PyPI

Code style: black Ruff Imports: isort Checked with mypy pre-commit

Build Docs Test Codecov GitHub License

支持的框架

快速开始

安装

使用 pip 安装zhplot:

pip install zhplot

使用 uv 安装zhplot:

uv add zhplot

使用方法

使用zhplot非常简单,只需在脚本开头导入即可:

+ import zhplot
import matplotlib.pyplot as plt

在汉化 wordcloud 的时候import zhplot需要在前面:

+ import zhplot
import wordcloud

一个简单的例子

import zhplot
import matplotlib.pyplot as plt


plt.plot([1, 2, 3, 4])
plt.title('这是一个标题')
plt.xlabel('横坐标')
plt.ylabel('纵坐标')
plt.show()

相似项目

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zhplot-1.0.0.tar.gz (6.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zhplot-1.0.0-py3-none-any.whl (6.3 MB view details)

Uploaded Python 3

File details

Details for the file zhplot-1.0.0.tar.gz.

File metadata

  • Download URL: zhplot-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for zhplot-1.0.0.tar.gz
Algorithm Hash digest
SHA256 79d357a8eff5e800f4daafa3696494db33b48eb206a991d36be36c40d8dba13a
MD5 1b448255b16917a46dd797d25f238b4b
BLAKE2b-256 e189398d0ce3a115a4c6daca733caf23a75cfe0392d2f3bdb2d85ada1d7a6533

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhplot-1.0.0.tar.gz:

Publisher: python-publish.yml on shenxiangzhuang/zhplot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zhplot-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: zhplot-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for zhplot-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5dccc5fc1116eafaa54d99c903ad74836e3ab9f5bdc45d27c29a97202268a2a
MD5 6d553dec0d65b5b2e2ce21cc2adacda2
BLAKE2b-256 dbf9c22988291c0ae3e60fa410e32eee6dbd69626c3fb0fcc1512d6a03b26bd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhplot-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on shenxiangzhuang/zhplot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

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