← Back to Skills Marketplace
earl-chen

Python Matplotlib Chinese Font

by Earl-chen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
127
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install python-matplotlib-chinese-font
Description
Configure matplotlib to display Chinese by adding a Chinese font file with font_manager.addfont(), setting rcParams['font.family'], and disabling unicode_minus.
Usage Guidance
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 font, you can instead point the templates to a system-installed Chinese font (e.g., SimHei or Microsoft YaHei) if available.
Capability Analysis
Type: OpenClaw Skill Name: python-matplotlib-chinese-font Version: 1.0.0 The skill bundle provides a legitimate utility for configuring Chinese font support in matplotlib. It includes instructions to download a font file from a reputable source (babelstone.co.uk) and provides Python templates (setup_font.py, plot_utils.py) to register the font using standard matplotlib APIs. No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
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.
Instruction Scope
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.
Install Mechanism
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.
Credentials
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.
Persistence & Privilege
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install python-matplotlib-chinese-font
  3. After installation, invoke the skill by name or use /python-matplotlib-chinese-font
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
初始发布 - 解决 matplotlib 中文显示问题
Metadata
Slug python-matplotlib-chinese-font
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Python Matplotlib Chinese Font?

Configure matplotlib to display Chinese by adding a Chinese font file with font_manager.addfont(), setting rcParams['font.family'], and disabling unicode_minus. It is an AI Agent Skill for Claude Code / OpenClaw, with 127 downloads so far.

How do I install Python Matplotlib Chinese Font?

Run "/install python-matplotlib-chinese-font" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Python Matplotlib Chinese Font free?

Yes, Python Matplotlib Chinese Font is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Python Matplotlib Chinese Font support?

Python Matplotlib Chinese Font is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Python Matplotlib Chinese Font?

It is built and maintained by Earl-chen (@earl-chen); the current version is v1.0.0.

💬 Comments