CommunityImagegithub.com

sci-paper-figure

Designs and generates publication-grade, zero-AI-flavor scientific paper figures—both Fig. 1 hero schematics/system architectures and multi-panel quantitative data figures—for engineering, chip/semiconductor, photonics, MEMS, and scientific instrumentation papers targeting Nature, Nature Electronics/Photonics/Nanotechnology, Science, Science Advances, IEEE TPAMI, ICLR, ISSCC, JSSC, and IEEE TIM. Grounded in empirical visual forensics of 1,590 real top-venue figures and 120 VLM art-director dissections. Use whenever the user asks to design, draw, plot, polish, or critique academic paper figures, Fig. 1 overview schematics, chip/instrument diagrams, or publication data charts.

What is sci-paper-figure?

sci-paper-figure is a Claude Code agent skill that designs and generates publication-grade, zero-AI-flavor scientific paper figures—both Fig. 1 hero schematics/system architectures and multi-panel quantitative data figures—for engineering, chip/semiconductor, photonics, MEMS, and scientific instrumentation papers targeting Nature, Nature Electronics/Photonics/Nanotechnology, Science, Science Advances, IEEE TPAMI, ICLR, ISSCC, JSSC, and IEEE TIM. Grounded in empirical visual forensics of 1,590 real top-venue figures and 120 VLM art-director dissections. Use whenever the user asks to design, draw, plot, polish, or critique academic paper figures, Fig. 1 overview schematics, chip/instrument diagrams, or publication data charts.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/wwwwwwall/sci-paper-figure/tree/HEAD

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Scientific Paper Figure Designer (sci-paper-figure)

Produce crisp, human-crafted, Illustrator-editable scientific figures that match the visual authority of Nature, Nature Electronics, Science, IEEE TPAMI, and ICLR—with zero "AI slop" (no dark neon glows, no PowerPoint drop shadows, no garbled AI raster text, no Matplotlib boilerplate).

Reference Library (Load On Demand)

Read only the reference files needed for the current figure:

Mandatory 6-Stage Production Workflow

Stage 1 — Lock Scientific Storyboard, Venue & Semantic Color Ledger

Before writing a single line of plotting/SVG code, define a brief design spec:

  1. Target Venue & Physical Width: Pick nature (183 mm double / 89 mm single), science (184 mm / 55 mm), tpami (181.8 mm / 88.9 mm), iclr (139.7 mm), or ieee_chip (181.8 mm / 88.9 mm).
  2. Causal Reading Flow: Map 1 unmistakable claim per panel (L → R or Top → Bottom Z-flow). For Fig. 1, pick one of the 8 proven blueprints in fig1-engineering-blueprints.md.
  3. Immutable Semantic Color Ledger: Assign 1 muted mineral hue = 1 physical layer / signal domain / method across the entire figure (e.g., steel blue #2B5B84 = electrical/proposed, vermilion #C84B31 = thermal/hero highlight, petrol teal #2A8C82 = optical/reference, slate #64748B = baselines & structure). Keep 60–75% of the canvas pure #FFFFFF white and >= 55% of non-white ink neutral charcoal/gray.

Stage 2 — Select the Right Vector Pipeline (Never AI-Rasterize Diagrams)

  • NEVER use raster AI image generators to draw block diagrams, chips, optical paths, circuits, plots, or labeled text.
  • For Fig. 1 Schematics, Chip/Instrument Architecture, or Hybrid Fig. 1 (Schematic + 3D Phong Renders + Embedded Plots/Micrographs):
    • Use svg_fig1_composer.py together with maxfill_layout.py (Max-Fill v3.1: Rect, 5 Asymmetric Editorial Hero Grid Layouts — layout_hero_left_stack_right, layout_top_panorama_bottom_triple, layout_hero_top_asymmetric_bottom, layout_mosaic_nature_5panel, layout_triple_column_center_hero — plus frameless interleaving primitives draw_leader_callout, draw_bus_label, draw_frameless_tag, draw_open_panel_header, draw_text_box_maxfill, place_text_maxfill, place_graphic_maxfill, place_plot_maxfill), hybrid_3d_renderer.py (exact back-to-front Phong-shaded Iso3DScene for 3D chiplet/HBM interposers, 3D GAA/FinFET silicon transistors, 3D multi-channel neural tensor pyramids, silicon die floorplan thermal heatmaps, and attention sparsity matrices), and canonical_modules.py (61 reusable palette-swappable top-venue modules, including v3.1 high-density real-structure chip & neural modules: mod_6t_sram_cim_cell, mod_noc_5port_router, mod_systolic_pe_array, mod_pll_serdes_analog_frontend, mod_flash_attention_tiled_core, mod_dit_adaln_transformer_block, mod_multiscale_conv_fpn_backbone, mod_moe_sparse_router_block).
    • MANDATORY v3.1 Open-Canvas + BIG-FONT + Anti-2×2 Hero Doctrine ("去 2×2 模板化 + 3D 混合质感 + 强制大字自适应 + 开放画布 + 引线穿插"): 0. IRON LAW #0 — ZERO-SQUINT LARGE TYPOGRAPHY ("字大第一铁律"): NEVER hardcode tiny 5.0–6.2 pt labels inside SVG schematics or embedded Matplotlib subplots! Every box label and open-canvas text slot MUST use draw_text_box_maxfill() / place_text_maxfill() / draw_leader_callout() descending strictly from 14–24 pt with balanced Enter (\n) wraps so text reaches the LARGEST size that fits its boundary (median >= 8.5–12 pt, p15 >= 7.2 pt, panel letters 11–12 pt, panel titles 9.5–11 pt). Embedded Matplotlib subplots MUST use font_scale >= 1.34 (8.5–11 pt labels/annotations/ticks) — enforced mechanically by Gate 11 (svg_large_typography) in figure_linter.py!
      1. Layer 1 — Break the 2×2 Template Habit (layout_hero_left_stack_right / layout_top_panorama_bottom_triple / layout_mosaic_nature_5panel / layout_triple_column_center_hero): NEVER default blindly to symmetric 2×2 grids! Pick an asymmetric editorial Hero layout tailored to the paper's physical story (e.g., 55% tall left 3D device Hero + 3 stacked right telemetry panels, panoramic top architecture + 3 bottom plots, or 5-panel Nature mosaic) on pure #FFFFFF open canvas (style="open_nature").
      2. Layer 2a — Frameless Leader Callouts & Bus Interleaving (draw_leader_callout / draw_bus_label / draw_frameless_tag): Do NOT trap every large label inside a chunky rounded rectangle! Point directly to 3D silicon structures, waveguides, routers, and neural modules via thin leader callouts (attach="auto"|"top"|"bottom"|"left"|"right" — never crossing text), multi-bit VLSI/tensor buses, and left/top accent-bar tags.
      3. Layer 2b — Procedural Hybrid 3D & High-Density Canonical Modules (hybrid_3d_renderer.py + canonical_modules.py 61 modules): Whenever a figure depicts 3D chips, chiplets, FinFET/GAA transistors, monolithic CQD/photonic stacks, or 3D neural feature pyramids, render an artifact-free Phong-shaded 380-DPI isometric visual via Iso3DScene / hybrid_3d_renderer.py and embed it inside the open SVG canvas while keeping ALL typography and callouts 100% vector SVG! For circuits & neural blocks, use high-density real-structure modules (mod_6t_sram_cim_cell, mod_noc_5port_router, mod_systolic_pe_array, mod_flash_attention_tiled_core, mod_dit_adaln_transformer_block, mod_multiscale_conv_fpn_backbone, mod_moe_sparse_router_block).
      4. Layer 2c — Hybrid Embedded Real Matplotlib Quantitative Subpanels (place_plot_maxfill): NEVER fill a panel with prose-only bullet rectangles! Pair physical schematics/3D renders directly beside crisp 360-DPI pub_style.py Matplotlib quantitative plots (log-log PSDs, I_D–V_GS, Pareto bubbles, scaling laws, MTF curves) with subtle regime bands (axvspan / fill_between).
      5. NO SaaS Column Cards (Ban #21) & Zero-Squint Chip/Net Grammar (Bans #25–#26): Keep main architecture labels bold (>= 8.2–12 pt via place_text_maxfill), replace prose footers with visual idioms (mini_roofline_plot, ghost-shrunk memory_cylinder, req_badge), lock shape semantics (tensor_cube, trapezoid_bottleneck, circles, curved_arc_arrow).
    • Organic Physical-Axis Composition: For optical benches, beamlines, scanning probes, and physical apparatuses, let the real physical path (including diagonal 25°–40° beam axes!) govern the layout, hugging zoom callouts and theory panels tightly around the beam instead of forcing robotic 3-column rectangular cards. Keep all CAD leader labels outside 3D isometric bounding silhouettes (Ban #24).
    • For embedded quantitative subpanels or real SEM/TEM/AFM/die/benchtop micrographs, render crisp 600 DPI PNGs first via pub_style.py and place them losslessly with canvas.embed_png(...) or canvas.photo_callout_overlay(...).
    • Export editable .svg, true-vector .pdf (Chrome headless), and 300/600 DPI .png via canvas.render(out_base, dpi=300).
  • For Pure Multi-Panel Quantitative Data Figures:
    • Use pub_style.py: call apply_venue_style(venue) and figure_for_venue(venue, cols, height_mm).
    • Enforce hero-vs-baseline hierarchy (plot_with_ci, plot_measured_and_fit, plot_rl_trajectory_with_milestone), direct inline labels (direct_label), parametric sweep ramps (monochrome_ramp + add_sweep_arrow), unsmoothed raw scan rendering (plot_unsmoothed_map), Pareto frontiers (draw_pareto_frontier), scale bars (add_scalebar), slope triangles (add_slope_triangle), dual-y color locking (dual_y_axes), regime bands (plot_regime_bands), target crosshairs (add_target_crosshair), and right-margin reference horizon ladders (add_horizon_ladder).
    • Export .pdf, .svg, and 600 DPI .png via save_pub_figure(fig, out_base).

Stage 3 — Zero-AI-Slop Pre-Flight Checklist

Verify every single item in code before rendering:

  • Pure #FFFFFF canvas (no dark backgrounds, no tinted slide frames, no drop shadows, no glossy bevels).
  • Zero redundant centered titles above quantitative subplots (use bold venue-matched panel letters + SI-unit axis labels + compact interior condition annotations like V_DS = 1 V, n = 15).
  • Zero default Matplotlib gridlines or boxed legends covering curves (use direct curve labeling, sweep arrows, or frameless legends in negative space).
  • Zero bicubic smoothing on raw experimental 2D scan matrices (interpolation='nearest').
  • Exact venue panel letters: a, b, c bold lowercase for Nature; A, B, C bold uppercase for Science; (a), (b), (c) for IEEE TPAMI / ICLR / Chip.
  • Strict scientific typography: italic variables (V_GS, ΔV_th, f_0), upright SI units (nm, μV Hz⁻¹/²), proper Unicode minus − and en-dash –, consistent 3-tier stroke hierarchy (0.6 pt axes / 0.9 pt secondary / 1.4 pt hero).

Stage 4 — Run Automated Empirical Anti-AI-Slop Audit

Run figure_linter.py on the rendered PNG:

python3 scripts/figure_linter.py path/to/figure.png --venue nature --role fig1

(Pass --role data for quantitative multi-panel figures; pass --allow-dark only for full-bleed fluorescence/SEM micrographs.)

  • Target PASS (score >= 85/100) with zero FAIL gates.
  • If any gate warns or fails (e.g., neon pixels > 1.5%, chroma > 50, whitespace < 45%, neutral ink < 40%, quadrant imbalance > 0.45), adjust fills/layout and re-render before proceeding.
  • (Optional GPU Perceptual Gate) When a Colab GPU session running OpenCLIP ViT-L-14 + DINOv2-Large + Qwen2.5-VL-7B is active, run colab_vlm_judge.py (--mode blind|compare|neural) to verify auth_prob >= 0.98, DINO_sim >= 0.72, and Venue_sim >= 0.68 against the 1,578-figure top-venue manifold.

Stage 5 — Mandatory Visual Self-Inspection Loop (read_file)

Never deliver a figure you have not visually inspected.

  1. Call read_file on the rendered .png.
  2. Audit with an art director's eye:
    • Any overlapping labels, clipped subscripts, or arrows colliding with text?
    • Are all panel letters aligned along shared horizontal/vertical baselines?
    • Do curves/blocks read immediately at actual single/double-column print size?
    • Does any corner feel dead, overcrowded, or remotely "PowerPoint / AI-generated"?
  3. Fix every visual defect, re-render, re-lint, and re-inspect via read_file until spotless.

Stage 6 — Deliver Production Artifacts

Provide the user with clickable links to:

  1. <name>.pdf — True vector PDF ready for LaTeX \includegraphics.
  2. <name>.svg — Fully editable vector source for Adobe Illustrator / Inkscape.
  3. <name>.png — High-DPI preview + empirical linter scorecard.
  4. Concise venue-matched caption draft (Fig. 1 | ... with matching a, b, c or (a), (b) panel keys).

Reference Examples

Inspect working runnable implementations in ./examples/:

  • demo_nature_chip_fig1.py — Nature Electronics double-column hybrid Fig. 1 (instrument + ASIC floorplan + cross-section + Pareto proof).
  • demo_science_data_panels.py — Science / Nature 4-panel experimental characterization figure (parametric sweep, unsmoothed AFM/thermal map + marginal profile, log-log noise PSD with slope triangle, distribution raincloud + brackets).
  • demo_tpami_iclr_arch_pareto.py — IEEE TPAMI / ICLR comparative paradigm-diff architecture + Pareto & ablation strip.

Related Skills