Scientific Figures, Tables & Assertion-Evidence Audit Skill
Core Premise: Every scientific figure, sub-panel, and table is an active step in an argument, never a chronological trophy of lab labor. Each visual must justify its existence via a one-sentence verb-driven message, occupy a unique
OCAR/ABTstoryboard slot, provide an unbroken visual inference bridge, and honor human visual perception (synthesizing Jean-luc Doumont, Trees, Maps, and Theorems, 2009; Michael Alley, The Craft of Scientific Writing / Presentations; Felice Frankel & Angela DePace, Visual Strategies, 2012; Margaret Cargill & Patrick O'Connor, Writing Scientific Research Articles; Claus O. Wilke, Fundamentals of Data Visualization, 2019; Nicolas P. Rougier et al., PLOS Comp. Biol., 2014).
Bundled Resources (Progressive Disclosure — Read Before Auditing or Coding!)
- Figure & Table Assertion-Evidence Audit Protocol (Doumont · Alley · Frankel & DePace · Schimel · Cargill) — Read FIRST when auditing/critiquing manuscript figures & tables, planning a paper/talk storyboard, or deciding keep vs. cut/merge/refactor: Whole-paper Storyboard Continuity Test, the 5-Gate Visual-by-Visual Inspection Protocol (Necessity & Deletion Counterfactual · Doumont/Alley 1-Sentence Claim · Unique
OCAR/ABTSlot & Anti-Chimera Sub-panel Audit · Frankel & DePace Visual Inference Bridge & Overclaim Check · Signal-to-Noise & Pareto/$\Delta$ Encoding Upgrades), the 6 Disposition Verdicts (KEEP,REFACTOR,SPLIT/PRUNE PANELS,MERGE,INLINE TO PROSE,DEMOTE/DELETE), Audit Ledger template, and worked audit example. - Encodings, Scales, Color Theory & Complete Chart Directory (Wilke Ch. 2–16) — Read when choosing what chart to plot or how to transform/encode data: Aesthetic mappings, Cartesian aspect ratios, Log/Ratio & Sqrt laws, Functional color theory (Distinguish / Represent / Highlight), and full decision rules + banned anti-patterns across Amounts, Single & Multi-Group Distributions (KDE, ECDF, Q–Q, Boxplot, Violin, Sina, Ridgeline), Proportions & Nested Proportions (Pie vs. Side-by-Side vs. Mosaic vs. Treemap vs. Parallel Sets), Associations & Paired Data (SPLOM, Correlogram, PCA,
x = yscatter, Slopegraph), Time Series & Trends (Connected Scatterplots, LOESS/GAM, Log-Linearized Fits, Detrending/STL), Geospatial Maps/Cartograms, and Uncertainty (Frequency Framing, Quantile Dotplots, Graded CIs, Contrast CIs vs.0, Bayesian Half-Eyes, Posterior Fitted Draws, HOPs). - Perceptual Laws, Clean Tables, Visual Storytelling & Matplotlib Recipes (Wilke Ch. 1, 17–29 + Rougier Ten Rules) — Read when styling plots, formatting tables, assembling multi-panel figures, or writing code:
Ugly vs. Bad vs. Wrongtriage, Principle of Proportional Ink, Overplotting ladder, CVD + Thin-Element Size laws, Redundant Coding & Direct Labeling (legend-free design), Small Multiples vs. Compound Alignment, Wilke's 6 Rules for Clean Tables, Perpendicular Context Grids, Larger Axis Labels, Solid Shapes over Line Drawings, Banning Gratuitous/Static 3D, Vector/Lossless File Formats (PDF/SVG/PNGvs.JPEG), Programmatic Repeatability, Ch. 29 Visual Storytelling, and ready-to-adapt Python/Matplotlib recipes. - Publication Matplotlib Helper (
publication_rcparams.py) — Import or inspect when writing Python scripts: Okabe–Ito hex/paired-shade palettes, exact journal column widths (scale=1.0), Type-42 TrueType PDF settings, perpendicular grid helper, and seeded repeatable RNG. - Sibling Prose Skill, Cross-Artifact Consistency & LaTeX Visual Linter (
scientific-writing): Read../scientific-writing/references/cross-artifact-consistency-audit.mdwhenever generating multi-table/multi-figure suites (Protocol P1/P2badging, single-source canonical aggregation, zero pooled-vs-stratified sign inversions), runuv run "../scientific-writing/scripts/lint_manuscript_visuals.py" path/to/main.texto auditvisual_inventory&cross_table_conflicts, and cross-check../scientific-writing/SKILL.md.
Mandatory 6-Phase Audit & Visualization Workflow
Phase 0: Visual-by-Visual Assertion-Evidence Audit Gate (Mandatory Before Designing or Revising)
Consult figure-table-assertion-evidence-audit.md. For every candidate or existing Figure, Sub-panel (a, b, c...), and Table (inspecting rendered .png/.pdf images via read_file and LaTeX visual_inventory when auditing existing drafts), demand crisp answers to Five Gates—if Gates 1–4 fail, do NOT polish the plot; refactor, inline, or cut it:
- Gate 1 — Existence & Medium Necessity (Schimel · Cargill & O'Connor): Does deleting it break a deductive step in
OCAR/ABT? Is the medium justified ($\le 3\text{–}4$ numbers / flat insensitivity $\rightarrow$ inline prose; exact decimal comparison $\rightarrow$ Table; trends, scaling, distributions, Pareto frontiers $\rightarrow$ Figure; zero duplicate table + plot)? - Gate 2 — One-Sentence Claim / Message (Doumont · Alley): Write one complete, verb-driven conclusion sentence (what it proves, never a topic header like
"Ablation study"or"Results on X"). Doumont's Guillotine: if no clear 1-sentence claim exists, re-slice around the governing variable or delete the visual. - Gate 3 — Storyline Slot & Anti-Chimera Sub-Panel Unity (Cargill · Schimel · Olson): Reading only
Assertion 1 → Assertion Kin sequence must reconstruct[BUT] Problem/Gap → [HOW] Mechanism → [THEREFORE] Headline → [WHY] Cause → [SCOPE] Boundary/Paretowith zero slot collisions. Every compound sub-panel must be cited in prose and serve one shared umbrella claim. - Gate 4 — Visual Inference Bridge & Honest Calibration (Frankel & DePace · Alley): Verify Audience × Purpose (Explanatory proof vs. Exploratory map) across Compare & Contrast (shared baselines, aligned scales, explicit CIs/$\Delta$), Process & Time (
① → ② → ③state transformations, not black-box code names), or Form & Structure (focal accent vs. gray context). Bound assertions honestly to error bars and outliers ("But, yes"—zero overclaiming). - Gate 5 — Signal-to-Noise & Encoding Upgrade (Doumont · Wilke): Does the eye hit the proving contrast in
<2 s? Upgrade split accuracy/latency tables to 2D Pareto plots, 90%-tall baseline bars to $\Delta$ dot/contrast plots, and pure code-wiringFig. 1boxes to[BUT] Bottleneck (a) → [THEREFORE] Mechanism (b). Output the Visual Audit Ledger (KEEP/REFACTOR/SPLIT/MERGE/INLINE TO PROSE/DEMOTE OR DELETE) whenever auditing a draft!
Phase 1: Triage, Medium Adaptation, & Repeatable Pipeline (Wilke Ch. 1, 28–29 · Alley · Rougier Rules 1–3, 9–10)
Uglyvs.Badvs.WrongGate (Ch. 1):- Eliminate Wrong errors first (broken math, missing units,
>100%double-counted pies, KDE tails predicting negative ages/impossible values), then Bad perceptual traps (truncated bars, spaghetti curves,jet/rainbow, unmatched legends), then Ugly imbalances (tiny fonts, rotated tick labels, misaligned panels).
- Eliminate Wrong errors first (broken math, missing units,
- Programmatic Repeatability & Content/Design Separation (Preface, Ch. 28):
- Generate figures directly from raw data via automated scripts with fixed RNG seeds (
np.random.default_rng(42)) so jitter, bootstrap intervals, and posterior draws are pixel-repeatable across revisions. Avoid unlogged interactive GUI tweaks or brittle manual Illustrator/Excel post-processing in iterative research pipelines. Separate content (data, transforms, plot type) from design (rcParams/ themes).
- Generate figures directly from raw data via automated scripts with fixed RNG seeds (
- "Make a Figure for the Generals" & Visual
ABTStory Sequence (Ch. 29, Olson Ch. 7 & 10, Rules 1–2, 9):- Strip tangential dimensions ("when you try to show too much data at once, you may end up not showing anything"). Order panels left-to-right (
Context/Input/Baseline on Left → Mechanism/Result on Right). - Across a paper or talk: ban
"and here's another graph"(AAA) figure/slide dumps—sequence visuals asABTarcs (Setup/Expectation [AND] → Anomaly/Bottleneck [BUT] → New Mechanism/Result [THEREFORE], opening talks with an ultra-specific Arouse & Fulfill visual hook), build up toward complex small multiples (show 1 representative panel first in talks), progress from raw-data views → derived summary metrics, vary chart types across distinct analyses, and target3–6core figures per storyline (demoting excess plots to Supplement).
- Strip tangential dimensions ("when you try to show too much data at once, you may end up not showing anything"). Order panels left-to-right (
- Adapt Strictly to Medium — NEVER Copy-Paste Paper Figures Into Slides (Rule 3, Ch. 24, Alley Assertion-Evidence):
- Journal / Conference Paper: Design at exact physical column width (
3.25–3.5 insingle-col,6.75–7.2 indouble-col) with7–9 ptfonts so LaTeX includes atscale=1.0without shrinking text! - Oral Presentation Slides (
16:9— Alley's Assertion-Evidence Architecture): Rebuild from scratch—place a1–2line (8–14word) full-sentence Assertion headline at the top stating the slide's conclusion (never"Results"or"Ablation"), dedicate the body entirely to clean visual evidence (eliminate bulleted text lists), thicken lines (2.0–3.0 pt), enlarge horizontal text (≥14–18 pt), and add direct visual callouts.
- Journal / Conference Paper: Design at exact physical column width (
Phase 2: Message-Driven Chart & Scale Selection Router (Wilke Ch. 2–16)
Consult chart-directory-and-encodings.md and apply these hard selection rules:
| Primary Message | Preferred Encodings | Strictly Banned / Pitfall to Avoid |
|---|---|---|
| Amounts (Ch. 6) | Horizontal bars for long labels; vertical bars (start=0); Cleveland dot plots for tight non-zero ranges (85%–92%) or log amounts; faceted bars or ordered heatmaps for 2-way tables. | Rotated 45°/90° tick labels; alphabetical unordered bars; reordering naturally ordered factors (age brackets); bars starting away from 0 (linear) or on log scales for raw amounts. |
| Distributions (Ch. 7–9) | 1–4 groups: Filled histogram (test multiple binwidths!), clipped KDE, ECDF (descending log–log for power laws), Q–Q (x=y), fractional KDE vs. gray total, age pyramid (exact 2 groups). Many groups: Light-shaded boxplot, violin (large N), sina plot (raw points + density!), ridgeline KDE (time trends). | Mean ± 2·SD error bars for population spread; stacked or overlapping histograms; KDE curves bleeding into impossible negative/>100% regions; ridgeline histograms. |
| Proportions (Ch. 10–11) | Side-by-side bars (many slices / multi-year); 2-group stacked bars (50% dashed line); faceted partial densities; pie chart (only 1 snapshot of 2–4 simple fractions like 1/2, 1/4). Nested: Mosaic plot (orthogonal 100% partitions + printed counts), Treemap (hierarchies + inside labels), Parallel sets (3+ vars, color origin on far left, minimize crossings). | Multi-year pies; ≥3-category stacked bar series (shifting middle baselines); >100% overlapping pies; double-counting concentric pies. |
| $x$–$y$ Associations & Trends (Ch. 12–14) | Scatter plot / SPLOM (beats bubble charts!); Correlogram with circle area $\propto | r |
| Geospatial (Ch. 15) | Equal-area projections (Goode homolosine, Albers); binned (4–6 levels) density choropleths (qty / area) + scale bar & north arrow; population cartograms, equal-square statebins, or geofacets. | Mercator world area comparisons; shrinking inset Alaska arbitrarily; unnormalized raw-count choropleths dominated by giant sparse regions. |
| Uncertainty (Ch. 16) | Graded error bars (80%/95%/99%), Contrast CIs plotted directly against Δ = 0, Quantile dotplots (10–20 dots) / waffle frequency grids, Bayesian half-eyes / eyes, graded confidence bands + posterior fitted draws, HOPs (crisp cuts). | Confusing SD with SE / CI; unstated error-bar meaning; eyeballing overlapping group error bars for significance. |
- Critical Ratio & Log-Scale Law (Ch. 3 & 17): ALWAYS plot ratios / fold-changes on a log scale, with bars/references anchored at
1(never on a linear scale!). Label log-scale axes with the original variable name (1, 10, 100), or specify the explicit base if plotting log-transformed numbers (log₁₀(x)/log₂(x)).
Phase 3: Perceptual Integrity, Color, Direct Labeling, & Multi-Panel Design (Wilke Ch. 17–26 · Rougier Rules 5–8)
- Proportional Ink & Solid Shapes (Ch. 17 & 25):
- Linear bars and shaded curve areas must start at
0; log-scale ratio bars must start at1; bubblearea(s) $\propto$ value (never radius!). - Prefer solid colored/gray shapes over hollow line drawings (fill histogram bars, shade boxplot interiors lightly, use semi-transparent filled KDEs, and use solid scatter markers
o, s, ^, Drather than noisy hollow symbols/cross-hatching).
- Linear bars and shaded curve areas must start at
- Overplotting Ladder (Ch. 18):
alpha + subtle jitter(moderateN) →hexbin/ 2D histogram (largeN) → 2D contours (≤3separated groups) or faceted small multiples (≥4overlapping groups). - Color Discipline, CVD Safety, & Redundant Coding (Ch. 4, 19–20, Rule 6):
- Default context/baselines to neutral gray; reserve vivid accent color to highlight the focal finding.
- Cap qualitative palettes at
3–5categories (hard max8, Okabe–Ito); for>8items, color by parent group and direct-label focal items. Banjet/rainbowand neon oversaturated large fills; center diverging scales strictly at the neutral reference (TwoSlopeNorm(vcenter=0)). - Thin-Element CVD Law: Colors collapse on thin lines and tiny dots (especially under CVD)—thicken lines, pair color with solid shapes, order legend entries to match the visual data rank (never alphabetical!), and eliminate legends via direct labeling whenever possible (using a slightly darker hue shade for thin text labels than for area fills).
- Balanced Context Grids & Multi-Panel Alignment (Ch. 21, 23, 26):
- Draw light-gray major gridlines perpendicular to the variable of interest (horizontal for time series/vertical bars; vertical for horizontal bars/dot plots;
x = ydiagonal ONLY without rectangular grid for paired scatters). Never strip context so far that bars/facets float in space. - Small Multiples: Enforce identical axis ranges across facets and logical panel ordering. Compound Figures: Enforce one unified visual language (identical category colors and left-to-right order across all panels), aligned spines/baselines, and discreet page-number-style
a, b/A, Blabels. - Ban Gratuitous & Static 3D (Ch. 26): Replace 3D pies/bars/scatters with 2D Trellis/facets or multi-encoding 2D plots (use interactive sidecar viewers for 3D biomolecules).
- Draw light-gray major gridlines perpendicular to the variable of interest (horizontal for time series/vertical bars; vertical for horizontal bars/dot plots;
Phase 4: Titles, Self-Contained Captions, Clean Tables, & File Formats (Wilke Ch. 22, 27 · Rougier Rule 4)
- One-Title Rule, Declarative Takeaway Captions, & Prose Symbiosis (Ch. 22.1–22.2, Rule 4):
- Manuscripts / Books (Caption Below Figure): Omit top titles inside the figure canvas; open the caption with a bold declarative takeaway sentence stating the finding (
"Figure 3. Spectral gating preserves constant loss up to 128k tokens."— never a descriptive catalog phrase like"This figure shows..."or"Relationship between X and Y", except concise functional titles on conceptual architecture schematics). Follow immediately with complete panel(a)–(c)/ axis / unit / encoding keys, sample size $n$, and exact error-bar definition (mean ± SEM,95% CI) so the visual is 100% self-contained without reading the main text. - Prose ⇄ Visual Lock: Ensure every figure/sub-panel and table is cited in sequential order in prose, never duplicate the exact same data in both a main-text table and a main-text figure, and lock 100% identical method names, acronyms, and math symbols ($\beta$, $\lambda$) between figure labels/legends and manuscript prose (ban leaked run IDs like
Ours-v2). - Always include units on quantitative axis/legend titles (
Latency (ms)); omit obvious redundant titles (2020, 2022needs noTime (years AD)).
- Manuscripts / Books (Caption Below Figure): Omit top titles inside the figure canvas; open the caption with a bold declarative takeaway sentence stating the finding (
- Wilke's 6 Rules for Publication Tables (Ch. 22.3):
- (1) Zero vertical lines; (2) Zero horizontal lines between data rows (top/header/bottom rules or subtle row tint only); (3) Left-align text, right-align numbers with uniform decimals, center single chars; (4) Align column headers identically with their data (right-align headers over number columns!); (5) Sort rows/columns purposefully; (6) Place Table Captions ABOVE the table (and Figure Captions BELOW).
- File Format Discipline (Ch. 27):
- Export
PDF(pdf.fonttype=42) for print/LaTeX (setrasterized=Trueon multi-hundred-thousand-point scatter layers so PDF viewers stay instant!) orSVGfor web/schematics; use losslessPNG(≥300–600 DPI) /TIFFfor bitmaps; STRICTLY BANJPEGfor any plot, schematic, line art, or text.
- Export
Phase 5: Mandatory Post-Render Visual Inspection Gate
After executing any figure generation script, ALWAYS call read_file on the rendered .png (or rasterized .pdf preview) and pass all 10 checks before delivering:
- Zero
Wrong/Baddefects: No negative KDE tails,>100%pies, truncated linear bars, log-scale amount bars, radius-scaled bubbles, or overlapping-CI significance guesses? - Proportional & Balanced Typography: Text (
7–9 ptpaper /14–18 ptslide) and markers balanced and legible when viewed at true3.5 in/7.0 inphysical width; zero rotated category labels? - Zero Collisions / Clipping: No cut-off labels, colliding direct annotations, or legends occluding data?
- Color & CVD Integrity: Gray context + purposeful accent;
≤8Okabe–Ito categories; zerojet/rainbow; zero-centered diverging norm; thin text darker than fill? - Legend-Free or Rank-Matched: Direct-labeled where feasible, or legend entries ordered to match visual data rank?
- Solid Shapes & Clean Context: Filled bars/shaded boxes/solid markers; light perpendicular grid (or
x = ydiagonal on paired scatters)? - Multi-Panel Coherence: Shared facet scales; aligned compound axes; unified category colors & left-to-right ordering across panels; discreet consistent
a, blabels? - Title, Caption & Table Compliance: No duplicate top title on paper figures; self-contained Rule 4 caption below figure (or Booktabs caption above table with zero vertical/inter-row lines and right-aligned numeric headers)?
- Cross-Artifact Value, Protocol & Sign Lock: Plotted bar/dot values, subgroup rankings, sample sizes ($n$), and caption directional claims match companion main/appendix tables (
Protocol P1/P2badged explicitly; zero pooled-vs-stratified sign inversions)? - Lossless Format & Repeatability: Saved as TrueType vector
.pdf/.svg+ lossless.png(never.jpeg), generated from a seeded repeatable script? - Iterated Until Clean: Re-run and re-inspect if any visual flaw appears.