Five-step figure generation pipeline inspired by PaperVizAgent (Google Research, 2026). Orchestrates Retriever → Planner → Stylist → Visualizer → Critic stages for publication-quality scientific figures. Retrieves reference figures from literature, plans layout and composition, applies journal-specific styling, generates the figure, then critiques and refines. Use when the user needs high-quality figures for papers/presentations and wants a more deliberate, reference-driven approach than direct code generation. Especially useful for multi-panel figures and complex data visualizations.
Five-step figure generation pipeline inspired by PaperVizAgent (Google Research, 2026). Orchestrates Retriever → Planner → Stylist → Visualizer → Critic stages for publication-quality scientific figures. Retrieves reference figures from literature, plans layout and composition, applies journal-specific styling, generates the figure, then critiques and refines. Use when the user needs high-quality figures for papers/presentations and wants a more deliberate, reference-driven approach than direct code generation. Especially useful for multi-panel figures and complex data visualizations.
Five-Step Figure Generation Pipeline
Generate publication-quality scientific figures through a structured pipeline with reference retrieval, planning, styling, generation, and self-critique. Inspired by PaperVizAgent's five-agent architecture.
When to Use
Multi-panel composite figures (e.g., "Figure 1: A) boxplot, B) KM curve, C) heatmap, D) network")
Figures that need to match a specific journal's style
Complex visualizations where direct code generation often produces suboptimal layouts
User explicitly asks for "publication-quality" or "journal-ready" figures
Graphical abstracts
When NOT to use (overkill):
Single simple plot → just write matplotlib/ggplot2 code directly
Mechanism diagrams → use svg-scientific-figures skill
Quick exploratory plots → direct code
Pipeline Steps
Step 1: RETRIEVE — Find Reference Figures
Search for published figures on the same topic to establish visual expectations:
{"figure_id":"Figure 1","title":"THBS2 Expression and Survival Analysis Across Cancer Types","layout":{"type":"grid","rows":2,"cols":2,"width_cm":17.5,"height_cm":15},"panels":[{"id":"A","type":"boxplot","data":"TCGA pan-cancer expression","x":"cancer_type","y":"THBS2_expression_TPM","notes"
Step 3: STYLE — Apply Journal-Specific Formatting
Select and apply styling rules based on target journal:
Journal Category
Width
DPI
Font
Palette
Panel Labels
Nature/Science/Cell
8.9cm (single) / 18.3cm (double)
300
Arial/Helvetica
NPG
Bold uppercase A, B, C
Lancet/NEJM/JAMA
8.5cm / 17.5cm
300
Arial
Lancet/NEJM
Bold a, b, c
Cancer Research
8.5cm / 17.5cm
300
Arial
AACR
Bold A, B, C
Default (no journal specified)
17.5cm (double)
300
Arial
NPG
Bold A, B, C
Styling rules:
Axis labels: 8-9pt, sentence case
Axis tick labels: 7-8pt
Panel labels: 10-12pt, bold, top-left corner outside plot area