What problem does it solve?
Matplotlib's default DejaVu Sans font does not include CJK glyphs, causing all Chinese text in plot titles, labels, legends, and tick marks to render as unreadable tofu squares (□), which breaks the usability of data visualizations for Chinese-speaking users.
Core Features & Use Cases
- Cross-platform font configuration: Automatically matches and sets the most appropriate pre-installed CJK font for Windows, macOS, and Linux systems.
- Dual implementation options: Provides a built-in helper for AIASys runtime environments and a self-contained fallback for sandboxed or isolated execution contexts.
- Troubleshooting support: Includes guidance for clearing matplotlib font caches, listing available CJK fonts, and validating font rendering correctness.
Use case: Data analysts, researchers, or developers generating matplotlib plots with Chinese text can use this skill to ensure all text renders correctly without manual font configuration or troubleshooting.
Quick Start
Load the aiasys-matplotlib-font-skill before creating any matplotlib plot that includes Chinese text to automatically apply the correct system font configuration.