figures4papers-playbook
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFigures4papers Playbook
Figures4papers 使用手册
Use this skill to find the closest figures4papers example and convert it into a user-specific plotting script quickly.
使用此技能可快速找到最匹配的figures4papers示例并将其转换为符合用户需求的绘图脚本。
Workflow
工作流程
- Parse user intent into chart type and domain (for example: grouped bar + benchmark comparison).
- Run to shortlist candidate scripts.
scripts/example_locator.py - Read for folder-level context and naming patterns.
references/example_index.md - Choose one base script and adapt data, labels, and file outputs.
- If style consistency is required, co-use for final polishing.
scientific-figure-pro
- 将用户需求解析为图表类型和领域(例如:分组条形图 + 基准对比)。
- 运行筛选候选脚本。
scripts/example_locator.py - 阅读获取文件夹级别的上下文信息和命名规则。
references/example_index.md - 选择一个基础脚本并调整数据、标签和文件输出设置。
- 如果需要风格一致性,可配合使用进行最终优化。
scientific-figure-pro
Locator Script
定位脚本
Use keyword and chart filters:
bash
python skills/figures4papers-playbook/scripts/example_locator.py --keyword bar --chart-type grouped_barOutput includes:
- Folder and domain.
- Matching script paths.
- Recommended run commands.
- Notes about the intended figure purpose.
使用关键词和图表过滤器:
bash
python skills/figures4papers-playbook/scripts/example_locator.py --keyword bar --chart-type grouped_bar输出内容包括:
- 文件夹及所属领域。
- 匹配的脚本路径。
- 推荐的运行命令。
- 关于该图表预期用途的说明。
Selection Rules
选择规则
- Prefer exact chart-type match first.
- Then prefer domain match (biomed, LLM eval, vision survey, etc.).
- If no exact match exists, choose the simplest script with nearest visual grammar.
- Keep output paths under a dedicated directory in the target project.
figures/
- 优先选择图表类型完全匹配的脚本。
- 其次优先选择领域匹配的脚本(生物医学、LLM评估、视觉调研等)。
- 如果没有完全匹配的,选择视觉语法最接近的最简脚本。
- 目标项目中的输出路径需放在专用的目录下。
figures/
References
参考资料
- : curated index of available figure folders and scripts.
references/example_index.md
- :整理好的可用图表文件夹和脚本索引。
references/example_index.md
Handoff Pattern
交接规范
After locating a base script, provide:
- Selected template path.
- What to replace (data arrays, labels, colors, limits).
- Command to run.
- Expected output files (and
.png)..pdf
找到基础脚本后,需提供:
- 选定的模板路径。
- 需要替换的内容(数据数组、标签、颜色、范围)。
- 运行命令。
- 预期输出文件(和
.png格式)。.pdf