自动设置Matplotlib中文字体
Project description
chinese_matplotlib
自动设置Matplotlib支持中文字体的小工具。
功能特点
- 自动检测当前系统可用的中文字体
- 如果本地缺少中文字体,自动下载并安装思源黑体 (Source Han Sans SC)
- 缓存检测结果,避免每次重复扫描
- 支持跨平台(Windows, macOS, Linux)
安装方法
pip install chinese-matplotlib
使用
from chinese_matplotlib import set_chinese_font
测试
from chinese_matplotlib import test_plot
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chinese_matplotlib-0.1.2.tar.gz.
File metadata
- Download URL: chinese_matplotlib-0.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6b76cdc1f09944f35e49c2175e41b605ce3933ae041f8b1a15c9d82d2edd45
|
|
| MD5 |
85c44ba51388b5384b6bc51aad912a9e
|
|
| BLAKE2b-256 |
32d8ec9ea5e3f6588283dcb24b7841e0564f7d49c0dfe5157c118cca06006d1f
|
File details
Details for the file chinese_matplotlib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: chinese_matplotlib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57e653bc81947f134157462ac93c6a6aee73b3012bb48976924659ca7e4ba722
|
|
| MD5 |
1468bc5b041ff60a901a50da3bc328d3
|
|
| BLAKE2b-256 |
c3c98732f8ae1d0891b9603a1a3140ed719e0f8f9bc32811af209323c1f745df
|