用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/KYRIE66nb/codex-omx-public-config --skill plot-from-image命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | plot-from-image |
| description | Recreate plots from images. |
Reproduce a paper figure by analyzing the image and leveraging accumulated style knowledge.
python3 -c "from PIL import Image; img=Image.open('fig.png'); print(img.size, f'AR={img.size[0]/img.size[1]:.2f}')"
Set figsize=(FW, FH) so FW/FH matches the original AR exactly.
Check if the figure matches a pre-built style (fastest path):
| Figure type | Check for |
|---|---|
| Grouped/paired bar | bar_paired_delta or bar_grouped_hatch |
| Line with shaded bands | line_confidence_band |
| Line with cut lines or reference | line_training_curve |
| Loss curve + zoom panel | line_loss_with_inset |
| Scattered clusters | scatter_tsne_cluster |
| Broken x-axis | scatter_broken_axis |
| Polygon web chart | radar_dual_series |
If matched → read ../plot-from-data/references/<name>.md for exact parameters → adapt ../plot-from-data/scripts/<script>.py.
Read references/reproduction_guide.md for the full analysis checklist covering:
Write script → python3 <script>.py → visually compare → fix proportions/colors → re-run
Key iteration checklist:
From 9 reproduced figures across 7 papers, key lessons:
alpha=0.95-0.97 before plotting, not raw noisy datalabel_r = 1.10-1.15 (NOT 1.2+, which creates excess whitespace)add_axes widths accordinglywspace=0.05, break symbol only at bottom spine#2C3E50, cluster-color facecolor with alpha=0.28fill_between with alpha=0.18-0.22, same color as linereferences/reproduction_guide.md — step-by-step checklist for new images../plot-from-data/references/ — 8 pre-built style parameter files../plot-from-data/scripts/ — 8 working reproduction scripts../originals/ — paper figures used in development基于 SOC 职业分类