跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

查看安装方法

适用场景

  • 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

包含的文件(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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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/MathModelAgent62202026年10月3日 更新

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/MathModelAgent62202026年10月3日 更新

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/MathModelAgent62202026年10月3日 更新

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/MathModelAgent62202026年10月3日 更新

4drawio

免费

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/MathModelAgent62202026年10月3日 更新

5writing

免费

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/MathModelAgent62202026年10月3日 更新

查看 jihe520 的全部技能

报告此技能的问题