figures4papers-playbook

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Figures4papers Playbook

Figures4papers 使用手册

Use this skill to find the closest figures4papers example and convert it into a user-specific plotting script quickly.
使用此技能可快速找到最匹配的figures4papers示例并将其转换为符合用户需求的绘图脚本。

Workflow

工作流程

  1. Parse user intent into chart type and domain (for example: grouped bar + benchmark comparison).
  2. Run
    scripts/example_locator.py
    to shortlist candidate scripts.
  3. Read
    references/example_index.md
    for folder-level context and naming patterns.
  4. Choose one base script and adapt data, labels, and file outputs.
  5. If style consistency is required, co-use
    scientific-figure-pro
    for final polishing.
  1. 将用户需求解析为图表类型和领域(例如:分组条形图 + 基准对比)。
  2. 运行
    scripts/example_locator.py
    筛选候选脚本。
  3. 阅读
    references/example_index.md
    获取文件夹级别的上下文信息和命名规则。
  4. 选择一个基础脚本并调整数据、标签和文件输出设置。
  5. 如果需要风格一致性,可配合使用
    scientific-figure-pro
    进行最终优化。

Locator Script

定位脚本

Use keyword and chart filters:
bash
python skills/figures4papers-playbook/scripts/example_locator.py --keyword bar --chart-type grouped_bar
Output 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
    figures/
    directory in the target project.
  • 优先选择图表类型完全匹配的脚本。
  • 其次优先选择领域匹配的脚本(生物医学、LLM评估、视觉调研等)。
  • 如果没有完全匹配的,选择视觉语法最接近的最简脚本。
  • 目标项目中的输出路径需放在专用的
    figures/
    目录下。

References

参考资料

  • references/example_index.md
    : curated index of available figure folders and scripts.
  • references/example_index.md
    :整理好的可用图表文件夹和脚本索引。

Handoff Pattern

交接规范

After locating a base script, provide:
  1. Selected template path.
  2. What to replace (data arrays, labels, colors, limits).
  3. Command to run.
  4. Expected output files (
    .png
    and
    .pdf
    ).
找到基础脚本后,需提供:
  1. 选定的模板路径。
  2. 需要替换的内容(数据数组、标签、颜色、范围)。
  3. 运行命令。
  4. 预期输出文件(
    .png
    .pdf
    格式)。