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:
- Quantitative benchmarks & empirical laws (
N = 1,590+ 78 blind adversarial papers across 26 cycles, Colab A100OpenCLIP+DINOv2+Qwen2.5-VL-7Bcertified + v3.1 Asymmetric 3D/Chip-Net Breakthrough): corpus-empirical-findings.md - The 26 Iron Anti-AI-Slop Bans: anti-ai-slop-manifesto.md
- Exact column widths, fonts, panel labels & palettes per venue: venue-specs.md
- 8 Fig. 1 engineering blueprints & 14 visual craftsmanship rules: fig1-engineering-blueprints.md
- 14 quantitative data-figure patterns: data-figure-patterns.md
- Empirical palettes, linter percentiles & Colab A100 neural perceptual benchmarks (
v3.0): empirical_palettes.json, venue_benchmarks.json, colab_gpu_benchmarks.json, neural_style_probe.npz
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:
- Target Venue & Physical Width: Pick
nature(183 mmdouble /89 mmsingle),science(184 mm/55 mm),tpami(181.8 mm/88.9 mm),iclr(139.7 mm), orieee_chip(181.8 mm/88.9 mm). - Causal Reading Flow: Map 1 unmistakable claim per panel (
L → RorTop → BottomZ-flow). For Fig. 1, pick one of the 8 proven blueprints in fig1-engineering-blueprints.md. - 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). Keep60–75%of the canvas pure#FFFFFFwhite 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 primitivesdraw_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-shadedIso3DScenefor 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 ptlabels inside SVG schematics or embedded Matplotlib subplots! Every box label and open-canvas text slot MUST usedraw_text_box_maxfill()/place_text_maxfill()/draw_leader_callout()descending strictly from14–24 ptwith balancedEnter(\n) wraps so text reaches the LARGEST size that fits its boundary (median >= 8.5–12 pt,p15 >= 7.2 pt, panel letters11–12 pt, panel titles9.5–11 pt). Embedded Matplotlib subplots MUST usefont_scale >= 1.34(8.5–11 ptlabels/annotations/ticks) — enforced mechanically by Gate 11 (svg_large_typography) infigure_linter.py!- 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#FFFFFFopen canvas (style="open_nature"). - 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. - Layer 2b — Procedural Hybrid 3D & High-Density Canonical Modules (
hybrid_3d_renderer.py+canonical_modules.py61 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 viaIso3DScene/hybrid_3d_renderer.pyand 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). - 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-DPIpub_style.pyMatplotlib quantitative plots (log-log PSDs,I_D–V_GS, Pareto bubbles, scaling laws, MTF curves) with subtle regime bands (axvspan/fill_between). - NO SaaS Column Cards (Ban #21) & Zero-Squint Chip/Net Grammar (Bans #25–#26): Keep main architecture labels bold (
>= 8.2–12 ptviaplace_text_maxfill), replace prose footers with visual idioms (mini_roofline_plot, ghost-shrunkmemory_cylinder,req_badge), lock shape semantics (tensor_cube,trapezoid_bottleneck, circles,curved_arc_arrow).
- Layer 1 — Break the 2×2 Template Habit (
- 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.pyand place them losslessly withcanvas.embed_png(...)orcanvas.photo_callout_overlay(...). - Export editable
.svg, true-vector.pdf(Chrome headless), and 300/600 DPI.pngviacanvas.render(out_base, dpi=300).
- Use svg_fig1_composer.py together with maxfill_layout.py (
- For Pure Multi-Panel Quantitative Data Figures:
- Use pub_style.py: call
apply_venue_style(venue)andfigure_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.pngviasave_pub_figure(fig, out_base).
- Use pub_style.py: call
Stage 3 — Zero-AI-Slop Pre-Flight Checklist
Verify every single item in code before rendering:
- Pure
#FFFFFFcanvas (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, cbold lowercase for Nature;A, B, Cbold 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 ptaxes /0.9 ptsecondary /1.4 pthero).
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 zeroFAILgates. - 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-7Bis active, run colab_vlm_judge.py (--mode blind|compare|neural) to verifyauth_prob >= 0.98,DINO_sim >= 0.72, andVenue_sim >= 0.68against 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.
- Call
read_fileon the rendered.png. - 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"?
- Fix every visual defect, re-render, re-lint, and re-inspect via
read_fileuntil spotless.
Stage 6 — Deliver Production Artifacts
Provide the user with clickable links to:
<name>.pdf— True vector PDF ready for LaTeX\includegraphics.<name>.svg— Fully editable vector source for Adobe Illustrator / Inkscape.<name>.png— High-DPI preview + empirical linter scorecard.- Concise venue-matched caption draft (
Fig. 1 | ...with matchinga, b, cor(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.