📦 Python Matplotlib Chinese Font — 中文显示

v1.0.0

一键为 Matplotlib 引入中文字体:用 font_manager.addfont() 加载字体文件,设置 rcParams['font.family'],关闭 unicode_minus,彻底解决图表中文乱码与负号显示异常。

0· 94·0 当前·0 累计
earl-chen 头像by @earl-chen (Earl-chen)
下载技能包
最后更新
2026/4/2
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
NULL
评估建议
This skill appears coherent and limited to enabling Chinese fonts in matplotlib. Before using: (1) verify and accept the font's license (BabelStoneHan is large ~50MB); (2) download the font from a trusted source and inspect it before adding to your project; (3) note the test script will save test_chinese_font.png to your current working directory; and (4) when copying the template, update the _FONT_FILE_RELATIVE path to point to your actual fonts/ location. If you prefer not to download a new fo...
详细分析 ▾
用途与能力
Name/description match the included templates and helper modules: all code focuses on loading a local TTF and setting matplotlib rcParams. There are no unrelated dependencies or credentials requested.
指令范围
SKILL.md and templates only instruct downloading a font (explicit curl/wget to a public font URL), copying a template, adding the font to matplotlib, and running local tests. The instructions reference local file paths and the project's fonts directory; they do not read unrelated system files or send data to external endpoints beyond the font download.
安装机制
No install spec; the skill is instruction-plus-template-only. Code files are benign Python helpers and tests. The only external network action suggested is downloading a font from a public project site, which is reasonable for this purpose.
凭证需求
The skill requires no environment variables, credentials, or config paths. It only accesses local filesystem paths for fonts and writes a test PNG to the working directory — proportional to the stated purpose.
持久化与权限
always is false, the skill doesn't request persistent elevated privileges, and it doesn't modify other skills or global agent configuration. It only registers fonts with matplotlib's font manager at runtime.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/4/2

NULL

无害

安装命令

点击复制
官方npx clawhub@latest install python-matplotlib-chinese-font
镜像加速npx clawhub@latest install python-matplotlib-chinese-font --registry https://cn.longxiaskill.com
数据来源ClawHub ↗ · 中文优化:龙虾技能库