Dissections
Keep the supporting panels, statistics and notes one step away from the main plot.
A figure panel is a verdict: caloric intake predicts body weight. The evidence behind that verdict — twenty per-subject curves, the model comparison you didn’t show, the ANOVA table — usually lives in a scratch folder far from the figure, or nowhere at all. Dissections give that material a home attached to the plot itself: a folder beside the plot that Flux shows live in the sidebar while you compose, opens full-screen on D, and searches by note.
The quickest start: with a figure open, press Alt+G to show the Plots view, click a plot, and read its Dissections in the lower pane. Press + Note there to write the first note. Everything else on this page explains what the pane shows and how to fill it from your analysis script.
The folder convention
Any plot in plots/ can own a dissection folder named after it under plots/_dissections/:
plots/
├── growth.svg # the composed panel
└── _dissections/
└── growth/ # ← growth.svg's dissections
├── overview.svg # loose files form the default group
├── notes.txt # a note: plain text, searchable
├── by_subject/ # a subfolder is a named group (a section in the viewer)
│ ├── subj01.svg …
└── _stats/
└── anova.csv # CSVs/TSVs open as sortable tablesThe name mirrors the plot’s path under plots/ (so plots/models/fit.svg owns plots/_dissections/models/fit/), with the extension dropped. Pasted images and PDF snips work too — they’re keyed by their file name.
That’s the whole contract. There is no manifest and no registration: the folder is the API. Your analysis script (or an agent) drops files in. Flux can create a dissection folder and write the text notes you edit there; it leaves your images, tables and other files alone.
What goes in
Anything that explains the plot. Typical dissections:
- Breakdowns — one panel per subject / session / condition behind a summary plot.
- Alternative analyses — the same question answered another way (different model, different normalisation), kept honest next to the version you published.
- Statistics —
_stats/CSVs with the tests behind the asterisks. Thefp.statsfunctions return rows made to be saved there. - Notes — one or more
.txtfiles with observations, decisions and searchable tags such as#check. - Images of any kind (svg, png, jpg, webp — fluxplot outputs included) and csv/tsv tables are first-class in the viewer;
.txtnotes open in the note editor; other files are listed by name.
Dissections are deliberately out of the way of composition: nothing under _dissections/ turns up in an ordinary plot search, lands in a figure by accident, or rides along into an export. They are context, not content.
Out of the way is not locked away. In the Plots rail’s search box or the full Plot gallery, type _ and the reserved folders (_dissections, and _lighttable if the project has one) appear as rows you can enter with Enter. Inside one, searching only looks within that folder, so you can find a per-subject panel and insert it deliberately — Backspace in an empty search steps back out to the ordinary plots/ search. In the Dissections pane itself, you can also drag a panel straight onto a figure.
Viewing them
Beside the canvas, live. The sidebar’s Plots view (Alt+G; it also opens a hidden sidebar, and Alt+G again returns to Layers) has the plot gallery on top and the Dissections of whichever plot you last clicked below — a plot clicked in the gallery or on the canvas — and follows each new click. Tables come first as small previews (a one-row statistics table reads as a list), then each folder of panels; very large folders show a few and Show all. Clicking a placed per-subject panel shows its siblings, the folder it came from. With a file selected, clicking another plot that has a file of the same name keeps it selected in the same place, so you can flip between plots and compare one subject. Clicking an empty spot keeps the last plot showing; the pin holds the pane on one plot while you work elsewhere. Double-click, Enter or Space opens a file in the full viewer. Drag the line between gallery and dissections to share the height, drag it to an edge to fold a part away, and double-click it to reset. A tile’s ⧉ 12 mark means the plot has 12 dissection files; click it to show them. Slides have the same rail beside the slide list.
Open a file. Select a plot in Figure or Slide and press D. The viewer opens on its first picture with the rest of the files in a strip below. ← / → flips between files, ↑ / ↓ changes group, Home / End goes to either end and 1–9 jumps to a section. Click a thumbnail to open it directly.
G switches to a grid of all files. There the arrows move between tiles, [ / ] sets their size and Enter opens one. On an open picture, Enter toggles fit and actual pixels, Ctrl+wheel zooms about the pointer and Space+drag pans. Escape returns to the grid if you opened the file there, or closes the viewer from its initial picture.
Read a table. Sort a CSV or TSV by clicking a heading. Long values are rounded to four significant digits, and small or large values use powers of ten. Hover a cell or choose As written to see the underlying text. A test-results table with a p-value and a test name or statistic also gets a Reads as section with a copyable sentence for each test. Files added to the dissection folder appear while the viewer is open.
Plot previews use the same readable background in the sidebar, Space preview, full gallery and this viewer: each image sits on its own page, transparent dark text on paper, light text on a dark surface. An image’s own background remains part of the image.
Notes and finding plots
Write notes
In the sidebar’s Dissections pane, switch from Files to ✎ Notes, or click ✎ Notes in the full viewer, then + Note to create a text file. Give each note a name; Flux adds .txt if needed, and a plot can have several named notes. Select a file to edit it; double-clicking a .txt among a plot’s files opens it here too. Notes save as you type and when you leave the field; Ctrl+S saves immediately. A failed save keeps your draft, and an external edit is reported instead of being overwritten. The text files remain readable in any editor, and your scripts can write them too.
#check are searchable across the project. The plot tiles show the neuroscience showcase. Data: Allen Brain Observatory, Allen Institute for Brain Science. Visual credits.
Search notes
In the Plots rail’s search, turn on Notes to search note contents across every plot in the project. For example, #check finds that tag wherever you wrote it. Each result shows the plot, note, line and the matching text; click it to select that plot and open the note in the Notes pane below. Switch Notes off to return to searching plot names.
Browse by folder
Alt+/ opens a searchable Folders panel beside the Plots rail. Type part of a folder name, walk matches with ↑ / ↓, and press Enter to show its plots. ← / → folds or opens branches, and Alt+click on a branch arrow folds or opens the subtree. Esc clears the search, then closes the panel. The header’s dock button moves Folders into the lower pane. Choose the default under Settings → Figure → Plot gallery → Folders open.
From the command line
For scripts and agents, flux list-dissections [plot] prints a plot’s groups and files (or, with no argument, every plot that has dissections); writing needs no verb — drop files in the folder. See the command reference.
Troubleshooting
| Symptom | Cause → fix |
|---|---|
| Pressed D and got “select a plot” | Dissect works on a selected plot or image (or a drilled part; the part’s owning plot is used; with several selected, the last plot you added). Group selections don’t map to one dissection folder → select one plot. |
| The Plots view says Library plots have no dissections | Plots from your global plot library live outside the project; dissections belong to a project’s plots/_dissections → place the plot in the project, or keep its evidence with the project it is used in. |
| The viewer says the folder doesn’t exist | Nothing has created it yet → the empty state’s Create dissection folder button does it, and shows the exact path. |
| Renamed a plot and its dissections vanished | Flux never renames files in plots/ → rename the matching folder under plots/_dissections/ yourself. Until you do, the plot reports no dissections; nothing breaks and the folder is never deleted. |
| A file shows as a name card with no preview | Images and CSV/TSV files have previews; .txt notes open in the text editor → other files remain listed by name so you know they’re there. |
| A note won’t save | Text notes are limited to 1 MiB and cannot follow symbolic links → shorten the note or keep large text elsewhere. If another editor changed the file, copy any draft text you want to keep, then choose Discard draft and reload to read the disk version before editing again. |