mathmodel-figure-templates

Generate publication-style scientific figures from bundled Python matplotlib templates.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Yjj0333/skills-manager-backup --skill mathmodel-figure-templates-yjj0333
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mathmodel-figure-templates
Source: https://github.com/Yjj0333/skills-manager-backup/tree/main/mathmodel-figure-templates
Command: npx skills add https://github.com/Yjj0333/skills-manager-backup --skill mathmodel-figure-templates-yjj0333

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matplotlib, numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve? Reproducing complex scientific visualization styles (SHAP beeswarm combos, raincloud plots, Taylor diagrams, chord diagrams) from scratch requires substantial matplotlib expertise and time. This Skill provides ready-to-run Python scripts that render eleven built-in figure templates with deterministic simulated data, exporting PNG, PDF, and SVG outputs. ## Core Features & Use Cases - Eleven Bundled Templates: Covers multiclass SHAP combo, paired raincloud, cross-validation ROC with CI, Taylor diagram, correlation pairgrid, prediction marginal grid, TPE 3D surface, split-violin correlation matrix, circular heatmap, urban cooling combo, and Nature-style chord diagram. - Template Resolution: A renderer script maps template ids, English aliases, or Chinese title fragments (e.g. 云雨图, 泰勒图, 和弦图) to the correct bundled script. - Workspace Output Contract: Copies the template into 绘图复刻/scripts/, runs it, and writes PNG/PDF/SVG files to 绘图复刻/outputs/ with a README entry. - Use Case: A user in the MathModel LaTeX sandbox asks to reproduce a 配对云雨图; the agent runs the renderer with the paired-raincloud id and returns the generated figure paths. ## Quick Start Ask the agent to reproduce a figure template, for example: run the mathmodel-figure-templates renderer with the paired-raincloud template to generate the paired raincloud figure in the workspace.

Frequently Asked Questions about mathmodel-figure-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render a figure template with this skill?▼

Run python3 scripts/render_template.py followed by a template id such as paired-raincloud from the workspace. The script copies the bundled template into 绘图复刻/scripts/, executes it, and writes PNG, PDF, and SVG outputs to 绘图复刻/outputs/.

What figure templates are available in mathmodel-figure-templates?▼

Eleven templates are bundled: multiclass-shap-combo, paired-raincloud, cv-roc-ci, taylor-diagram, correlation-pairgrid, prediction-marginal-grid, rf-tpe-surface, grouped-corr-split-violin, grouped-circular-heatmap, urban-park-cooling-combo, and nature-chord-diagram. Use --list to print all ids.

Can I request templates using Chinese figure titles?▼

Yes, the renderer maps Chinese fragments like 云雨, 泰勒, 环形热图, and 和弦 to the corresponding template ids via its CJK hint table. English aliases such as raincloud, roc, taylor, and chord also resolve correctly.

Do the generated figures use real research data?▼

No, all bundled scripts use deterministic simulated data with fixed random seeds to reproduce the visual style of reference figures. The outputs should not be presented as reproducing exact values from any source study.

How do I customize a template figure after rendering?▼

Edit the copied script in 绘图复刻/scripts/ rather than the bundled original. Preserve the MPLCONFIGDIR setting before importing matplotlib, the deterministic seeds, and the PNG/PDF/SVG export calls, and consult references/plot-recipes.md for implementation patterns.