Figure planner

From Chanw-research/claude-code-paper-writing · View interactive version

Figure planner is an AI agent skill from the GitHub repository Chanw-research/claude-code-paper-writing. Use when designing, restructuring, or auditing manuscript figures and you need to define one main claim per figure, assign panel roles, align legends with the text, or decide what belongs in main figures versus supplement.

How to use this skill

Skill file

Figure Planner

Overview

Use this skill when the bottleneck is no longer sentence writing but figure logic. The goal is to make each figure carry a defensible scientific job, keep the panel set coherent, and ensure that the legend and Results text tell the same story.

This skill is narrower than manuscript-optimizer. Use manuscript-optimizer when the whole paper structure is unstable. Use figure-planner when the central issue is what each figure should prove and how each panel should function.

When To Use

Use this skill when:

Do not use this skill for:

Core Rule

Each main figure should earn its place by carrying one dominant claim.

If a figure cannot be summarized by one clean sentence, either:

Panel Roles

Assign each panel one primary role before writing the legend or Results paragraph:

Do not let one panel pretend to do three jobs at once.

Planning Order

  1. Write the single-sentence claim of the figure.
  2. List the minimum panels needed to support that claim.
  3. Assign each panel one role.
  4. Decide which panel is the anchor panel:
  1. Move secondary detail to:
  1. Rewrite the figure title and legend to match the actual claim.
  2. Check that the Results subsection matches the same panel logic.

Main Figure Versus Supplement

Keep in the main figure:

Move to the supplement:

Legend Rules

Legends should do more than decode axes.

Each legend should:

Visual Hygiene Pass

After the figure logic is stable, run one visual-hygiene pass:

Common Failure Modes

Nature-Style Enhancements

Matplotlib Figure Standards

For figures targeting Nature or similar high-impact journals, apply the following rcParams:

import matplotlib.pyplot as plt

plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Arial']
plt.rcParams['svg.fonttype'] = 'none'          # editable text in SVG/PDF
plt.rcParams['font.size'] = 16                 # 24 for large bar panels
plt.rcParams['axes.spines.right'] = False
plt.rcParams['axes.spines.top'] = False
plt.rcParams['axes.linewidth'] = 2.5           # 3 for big bars, 2 for compact
plt.rcParams['legend.frameon'] = False

Use text.usetex = True only when LaTeX is installed and math-rich labels are required.

When to Use

Output Standard

When using this skill, produce:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.