mathmodel-figure-templates
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMathModel Figure Templates
MathModel 绘图模板
This skill is bundled into the LaTeX sandbox at . It contains ready-to-run Python/matplotlib scripts for the figure templates exposed in the MathModel Improve tab.
/home/user/.claude/skills/mathmodel-figure-templates此skill捆绑在LaTeX沙箱中,路径为。它包含可直接运行的Python/matplotlib脚本,用于生成MathModel Improve标签页中提供的绘图模板。
/home/user/.claude/skills/mathmodel-figure-templatesFast Path
快速上手
- Match the requested chart in .
references/figure-catalog.md - From , run the renderer with the template id:
/home/user/workspace
bash
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py paired-raincloud- The renderer copies the bundled template script into , runs it there, and writes outputs to
绘图复刻/scripts/.绘图复刻/outputs/ - Return the generated PNG/PDF/SVG paths and the copied script path to the user.
Use to show supported ids:
--listbash
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py --list- 在中匹配用户请求的图表。
references/figure-catalog.md - 在目录下,使用模板ID运行渲染器:
/home/user/workspace
bash
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py paired-raincloud- 渲染器会将捆绑的模板脚本复制到目录下,在该目录中运行脚本,并将输出结果写入
绘图复刻/scripts/。绘图复刻/outputs/ - 将生成的PNG/PDF/SVG文件路径以及复制后的脚本路径返回给用户。
使用参数查看支持的所有模板ID:
--listbash
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py --listOutput 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-combopaired-raincloudcv-roc-citaylor-diagramcorrelation-pairgridprediction-marginal-gridrf-tpe-surfacegrouped-corr-split-violingrouped-circular-heatmapurban-park-cooling-combonature-chord-diagram
multiclass-shap-combopaired-raincloudcv-roc-citaylor-diagramcorrelation-pairgridprediction-marginal-gridrf-tpe-surfacegrouped-corr-split-violingrouped-circular-heatmapurban-park-cooling-combonature-chord-diagram
When Customizing
自定义注意事项
If the user asks for changes, copy/run the nearest template first, then edit the copied file in . Preserve:
绘图复刻/scripts/- before importing matplotlib.
MPLCONFIGDIR - deterministic seeds for simulated data.
- PNG/PDF/SVG export.
- readable labels, legends, and high-DPI output.
Use for implementation patterns.
references/plot-recipes.md如果用户要求修改,请先复制并运行最接近的模板,再编辑中复制的文件。请保留以下内容:
绘图复刻/scripts/- 导入matplotlib前设置。
MPLCONFIGDIR - 模拟数据的确定性随机种子。
- PNG/PDF/SVG格式导出。
- 清晰易读的标签、图例,以及高DPI输出。
可参考中的实现模式。
references/plot-recipes.md