Chapter 10. Reports, figures and output files
An nlmx analysis is not finished when the calculation stops. It is finished when another person can determine what ran, inspect the scientific results, reuse the machine-readable values, and verify that the evidence has not changed. This chapter treats the output directory as an evidence bundle, not as a collection of convenient exports.
Figure 10.1. Human review, machine reuse, provenance and integrity are separate layers of a defensible output bundle.
What you will learn
- how nlmx creates and protects an output directory;
- how the self-contained HTML report behaves on screen, in dark mode, without JavaScript and when printed;
- how web SVG, publication SVG and PNG are related;
- how physical dimensions, points, pixels, dpi and embedded PNG resolution interact;
- how CSV, JSON, Markdown, HTML and text outputs represent values and missingness;
- how summaries, listings and unconfirmed drafts should be reviewed;
- what input manifests and output checksums do—and do not—prove;
- how to assemble a review, publication or regulatory archive without losing provenance.
Scope and evidence
The behavioral description was checked against the report, plot and output-writing behavior of the commands, as of nlmx 4.4.0; the release executable used in earlier worked chapters identifies itself as 4.3.0. This chapter therefore labels contracts by version rather than silently claiming that every installed binary has the newest behavior.
The diagrams are generated by pytools/ch10_figures.py. They are explanatory figures, not screenshots of a particular analysis. Command-specific chapters will provide complete output inventories and empirical examples for their workflows; Chapter 38 is planned as the versioned file-by-file reference.
Twenty Markdown pages in this chapter
| Page | Topic | Core question |
|---|---|---|
| 10.1 | Output-directory lifecycle | Where can nlmx write safely? |
| 10.2 | Output-bundle layers | Which artifact serves which audience? |
| 10.3 | HTML report anatomy | What is inside report.html? |
| 10.4 | Interaction and printing | What changes with JavaScript or print CSS? |
| 10.5 | Themes and accessibility | How should light/dark graphics be reviewed? |
| 10.6 | Figure pipeline | How do web and publication figures relate? |
| 10.7 | SVG | When is vector output the master? |
| 10.8 | PNG | How do dpi and physical size work? |
| 10.9 | Chart grammar | Which styles, colors and labels carry meaning? |
| 10.10 | Figure families | What should common diagnostics communicate? |
| 10.11 | CSV | How are delimiters, missing values and vectors encoded? |
| 10.12 | JSON | How are types, nulls and schemas handled? |
| 10.13 | Multi-format tables | When should Markdown or HTML be used? |
| 10.14 | Summaries and listings | What belongs in human-readable text? |
| 10.15 | Draft code | How should generated snippets be controlled? |
| 10.16 | Manifests and checksums | Which integrity claims are justified? |
| 10.17 | Common output files | What patterns recur across commands? |
| 10.18 | Archiving and sharing | What should travel together? |
| 10.19 | Publication/regulatory QC | Which gates precede release? |
The governing rule
Never use a presentation artifact as the sole scientific record. A figure can reveal a pattern but not preserve every value; an HTML report can organize review but is not a stable data API; a CSV table can preserve rows but not explain why they were produced. Retain the complementary layers together and review them against one another.