mathmodel-figure-templates

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

MathModel Figure Templates

MathModel 绘图模板

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.
此skill捆绑在LaTeX沙箱中,路径为
/home/user/.claude/skills/mathmodel-figure-templates
。它包含可直接运行的Python/matplotlib脚本,用于生成MathModel Improve标签页中提供的绘图模板。

Fast Path

快速上手

  1. Match the requested chart in
    references/figure-catalog.md
    .
  2. From
    /home/user/workspace
    , run the renderer with the template id:
bash
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:
bash
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py --list
  1. 在
    references/figure-catalog.md
    中匹配用户请求的图表。
  2. 在
    /home/user/workspace
    目录下,使用模板ID运行渲染器:
bash
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py paired-raincloud
  1. 渲染器会将捆绑的模板脚本复制到
    绘图复刻/scripts/
    目录下,在该目录中运行脚本,并将输出结果写入
    绘图复刻/outputs/
    。
  2. 将生成的PNG/PDF/SVG文件路径以及复制后的脚本路径返回给用户。
使用
--list
参数查看支持的所有模板ID:
bash
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.
  • 除非用户指定其他路径,否则在当前工作区下操作。
  • 默认项目文件夹:
    绘图复刻
    。
  • 脚本路径:
    绘图复刻/scripts/make_<template>.py
    。
  • 输出文件:
    绘图复刻/outputs/<template>_replica.png
    、
    .pdf
    、
    .svg
    。
  • 优先使用捆绑的脚本;仅当用户要求自定义时,才编辑工作区中复制的脚本。
  • 捆绑的脚本使用确定性的模拟数据。请勿声称模拟值完全复现了某一原始研究的结果。

Template Ids

模板ID列表

  • 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
  • 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.
如果用户要求修改,请先复制并运行最接近的模板,再编辑
绘图复刻/scripts/
中复制的文件。请保留以下内容:
  • 导入matplotlib前设置
    MPLCONFIGDIR
    。
  • 模拟数据的确定性随机种子。
  • PNG/PDF/SVG格式导出。
  • 清晰易读的标签、图例,以及高DPI输出。
可参考
references/plot-recipes.md
中的实现模式。