Skip to content
cccskills
FreePublished on GitHub

mathmodel-figure-templates

Generate scientific chart examples from bundled Python scripts using repeatable simulated data. Choose from templates such as raincloud plots, correlation matrices, and ROC charts, then receive PNG, PDF, SVG, and editable script files.

OriginalShow the original description

Use this skill in the MathModel LaTeX sandbox when the user asks to reproduce built-in scientific visualization templates, especially prompts from the Improve tab mentioning $mathmodel-figure-templates, 科研绘图模板, SHAP蜂群柱状图, 配对云雨图, 交叉验证ROC, 泰勒图, 相关矩阵组合图, 预测真实值边缘分布图, TPE调参3D曲面, 下三角相关矩阵半边小提琴图, 分组环形热图, 城市公园降温组合图, or Nature和弦图. It provides ready-to-run Python scripts bundled inside the skill.

See how to install

Good for

  • Generating sample scientific charts from templates
  • Comparing correlation and prediction chart layouts
  • Customizing labels and legends in generated charts
  • Exporting charts as PNG, PDF, and SVG

Files included (26)

  • SKILL.md2.6 KB
  • assets/previews/correlation_pairgrid_replica.png1.1 MB
  • assets/previews/cv_roc_ci_replica.png293.7 KB
  • assets/previews/grouped_circular_heatmap_replica.png1.6 MB
  • assets/previews/grouped_corr_split_violin_replica.png401.6 KB
  • assets/previews/multiclass_shap_combo_replica.png1.3 MB
  • assets/previews/nature_chord_diagram_replica.png1.2 MB
  • assets/previews/paired_raincloud_replica.png428.9 KB
  • assets/previews/prediction_marginal_grid_replica.png1.0 MB
  • assets/previews/rf_tpe_surface_replica.png1.3 MB
  • assets/previews/taylor_diagram_replica.png472.4 KB
  • assets/previews/urban_park_cooling_combo_replica.png854.5 KB
  • references/figure-catalog.md1.4 KB
  • references/plot-recipes.md1.4 KB
  • scripts/render_template.py5.5 KB
  • scripts/templates/make_correlation_pairgrid.py6.9 KB
  • scripts/templates/make_cv_roc_ci.py7.8 KB
  • scripts/templates/make_grouped_circular_heatmap.py10.0 KB
  • scripts/templates/make_grouped_corr_split_violin.py9.8 KB
  • scripts/templates/make_multiclass_shap_combo.py9.8 KB
  • scripts/templates/make_nature_chord_diagram.py9.9 KB
  • scripts/templates/make_paired_raincloud.py10.3 KB
  • scripts/templates/make_prediction_marginal_grid.py8.4 KB
  • scripts/templates/make_rf_tpe_surface.py6.0 KB
  • scripts/templates/make_taylor_diagram.py7.4 KB
  • scripts/templates/make_urban_park_cooling_combo.py15.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

MathModel Figure Templates

This skill is bundled into the LaTeX sandbox at /home/user/.claude/skills/mathmodel-figure-templates. It contains ready-to-run Python/matplotlib scripts for the figure templates exposed in the MathModel Improve tab.

Fast Path

  1. Match the requested chart in references/figure-catalog.md.
  2. From /home/user/workspace, run the renderer with the template id:
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py paired-raincloud
  1. The renderer copies the bundled template script into 绘图复刻/scripts/, runs it there, and writes outputs to 绘图复刻/outputs/.
  2. Return the generated PNG/PDF/SVG paths and the copied script path to the user.

Use --list to show supported ids:

python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py --list

Output Contract

  • Work under the current workspace unless the user gives another path.
  • Default project folder: 绘图复刻.
  • Script path: 绘图复刻/scripts/make_<template>.py.
  • Outputs: 绘图复刻/outputs/<template>_replica.png, .pdf, .svg.
  • Use the bundled scripts as the first choice; edit the copied workspace script only when the user requests customization.
  • The bundled scripts use deterministic simulated data. Do not claim simulated values reproduce a source study exactly.

Template Ids

  • 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
  • nature-chord-diagram

When Customizing

If the user asks for changes, copy/run the nearest template first, then edit the copied file in 绘图复刻/scripts/. Preserve:

  • MPLCONFIGDIR before importing matplotlib.
  • deterministic seeds for simulated data.
  • PNG/PDF/SVG export.
  • readable labels, legends, and high-DPI output.

Use references/plot-recipes.md for implementation patterns.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

_references

FreeSummary

Provides shared reference material for mathematical modeling competitions, covering writing conventions, problem-specific pitfalls, and chart guidelines. Other skills consult relevant sections during their work; this resource does not run independently.

  • Referencing competition writing conventions
  • Checking pitfalls for different problem types
  • Consulting chart and figure guidelines
jihe520/MathModelAgent6.2KUpdated Oct 3, 2026

1start-mathmodel

FreeSummary

Coordinates a mathematical modeling competition project from planning to final checks. It records formatting and language preferences, creates a plan and task checklist, and calls dedicated skills for modeling, coding, diagrams, paper writing, and verification.

  • Starting a mathematical modeling competition project
  • Planning work around competition and formatting preferences
  • Tracking progress across modeling and paper-writing stages
jihe520/MathModelAgent6.2KUpdated Oct 3, 2026

Turns mathematical modeling competition problems and attachments into an implementation-ready report. It breaks down questions, examines ambiguous assumptions and data quality, and defines variables, equations, constraints, solution methods, and validation steps.

  • Breaking down competition questions and their dependencies
  • Comparing interpretations of ambiguous problem statements
  • Reviewing attached data before modeling
jihe520/MathModelAgent6.2KUpdated Oct 3, 2026

3coding-visual

FreeSummary

Implements mathematical models from a design report as reproducible code, runs calculations, and checks results. It records methods and validation findings in a results report and produces data-based PDF charts for papers.

  • Implementing models from a modeling report
  • Checking constraints and evaluating prediction errors
  • Creating PDF charts from computed results
jihe520/MathModelAgent6.2KUpdated Oct 3, 2026

4drawio

FreeSummary

Turn mathematical modeling reports into DrawIO diagrams showing solution steps, model structures, and data processing flows. Produce editable source files, export PDFs for papers when DrawIO is available, and record diagram choices and export results.

  • Illustrate the overall approach in a modeling paper
  • Draw solution flows for individual subproblems
  • Show model structure and variable relationships
jihe520/MathModelAgent6.2KUpdated Oct 3, 2026

5writing

FreeSummary

Write mathematical modeling competition papers from existing analysis reports, results, and figure PDFs. Use competition templates in Typst or LaTeX, tools for document layout, to organize sections, place figures, and prepare references and summaries.

  • Turn modeling reports into a competition paper
  • Use a template for MCM or CUMCM
  • Place existing figures in relevant sections
jihe520/MathModelAgent6.2KUpdated Oct 3, 2026

See all skills by jihe520

Report a problem with this skill