A comprehensive solution for resolving Chinese character rendering issues and tofu blocks in Matplotlib data visualizations.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install python-matplotlib-chinese-font
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install python-matplotlib-chinese-font using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill addresses the notorious issue where Matplotlib fails to render Chinese characters by default, leading to missing glyph warnings and square boxes in plots. By utilizing Openclaw Skills, developers can implement a portable, cross-platform configuration that bundles font management directly into their project workflow. It provides a standardized way to register fonts like BabelStoneHan or SimHei, ensuring that titles, legends, and axis labels appear correctly across different operating systems without relying on system-wide font installations.
Beyond just text rendering, this skill also solves common side effects such as the incorrect display of negative signs in coordinates. It focuses on best practices for Python developers, emphasizing absolute path management and version-agnostic font registration methods that work with both modern and legacy Matplotlib versions.
First, create a font directory and download the necessary font file:
mkdir -p fonts
curl -L -o fonts/BabelStoneHan.ttf "https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.ttf"
Next, copy the configuration template from your local Openclaw Skills repository:
cp ~/.openclaw/skills/python-matplotlib-chinese-font/templates/setup_font.py ./
Finally, initialize the font in your Python script:
from setup_font import setup_chinese_font
setup_chinese_font()
The skill utilizes a structured directory pattern to maintain portability:
| Component | Path | Description |
|---|---|---|
| Font Storage | /fonts/ |
Contains the TTF files (e.g., BabelStoneHan.ttf) |
| Configuration | /templates/ |
Reusable Python scripts for font registration |
| Utilities | /references/ |
contains plot_utils.py for advanced plotting functions |
| Verification | /references/ |
Includes test_chinese_font.py for environment validation |
Loading
A unified data access layer providing seamless, multi-source intelligence for Polymarket trader positions, market metadata, and historical trade analytics.

A comprehensive automation utility to validate, version, and deploy SKILL.md files to multiple AI agent marketplaces simultaneously.

A powerful three-agent pipeline for generating, validating, and exporting professional D2 diagrams and system architectures.

A real-time data retrieval tool for fetching the top trending videos and creator information from Bilibili without requiring authentication.

Transform rough technical ideas and scattered requirements into professional Request for Comments (RFC) documents and architecture designs.

Transform raw git commit logs into structured, professional release notes categorized by impact and feature.








































