Skip to content

Align Figure 3's two panels on one title line and a shared vertical centre - #63

Merged
SamMausberg merged 1 commit into
mainfrom
paper/figure-align
Oct 1, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
paper/figure-align

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

Sam asked for Figure 3 (fig:transport, paper/figures/transport.tex) to have its two panels aligned.

Problem. Panels (a) and (b) were two tikzpictures placed side by side with \hfill. They aligned on their bottom edges, and (b)'s bounding box includes the legend under its axis. The titles and plot areas therefore sat at different heights.

Change. Both panels are now one picture.

  • (b)'s axis is placed with anchor=center at y = 0, so the centre of its plot area is at y = 0.

  • (a)'s drawing spans y = -40 to 75 units, from its callout text to the rescaling note. It is shifted so that its middle is also at y = 0.

  • (a)'s title is a node at (b)'s outer north line. The two titles share one style (paneltitle: \footnotesize, fixed text height and depth), so they sit on one line with a common baseline.

  • To fit the text width without the panels overlapping:

    • (a)'s scale goes from 0.0335 to 0.032 cm per unit;
    • its callout moves 4 units left;
    • (b)'s width goes from 8.9 to 8.7 cm.

    The drawing stays to scale, and the data, labels and caption are unchanged.

Validation.

  • latexmk from a clean tree gives 66 pages with no warnings and no undefined references.
  • The main text still ends on page 10, and page 11 starts with the References heading.
  • I rendered page 9 at 150 dpi and checked it:
    • The two titles sit on one line.
    • The plot area of (b) is centred against the drawing in (a): measured at 150 dpi, the centres are about 5 px apart.
    • The figure stays inside the text width.
  • codespell on the figure and scripts/check_paper_references.py pass.

Not done. Sam suggested replacing (b)'s three MTP-4B markers with the full CDF once #62 merges. #62 is still open, so this PR keeps the markers drawn from transport_mtp4b.json. I will make that change, and update the caption's pair count, in a follow-up after #62 merges.

The two panels were separate tikzpictures set side by side, aligned on their
bottom edges, and panel (b)'s bounding box includes its legend, so the titles
and plot areas sat at different heights. Both panels are now one picture:
(b)'s plot area is centred on y = 0, (a)'s drawing is shifted so that its
vertical centre is also at y = 0, and (a)'s title is set on (b)'s title line
with the same font, text height and depth. Panel (a) is scaled from 0.0335 to
0.032 cm per unit and its callout moved left so the two panels fit the text
width without overlapping. No data, label or caption changes.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T03:28:40.734033Z 072f0b4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE

Reviewed head 072f0b4: one commit, changing paper/figures/transport.tex and the rebuilt PDF.

  • Alignment. I rendered page 9 at 110 dpi from both the committed PDF and main's.
    • On main, panel (a) sits lower than (b), and its title sits below (b)'s.
    • Here, the two titles share one baseline, and (a)'s drawing is centred vertically on (b)'s plot area.
    • Both panels are now one tikzpicture, with (a) in a scope shifted by its own mid-height, and the shared paneltitle style fixes text height and depth. That alignment holds by construction rather than by eye.
  • Still to scale. Panel (a) keeps one scale for x and y (0.032 cm per unit), so "to scale" in the caption still holds. The ball radius is still 0.00854 x 159.2 units in the same coordinates. The 4-unit move of the callout changes no geometry.
  • Data unchanged. The data series, the MTP-4B markers (0.7666 / 0.9541 / 1.1756), the labels and the caption are unchanged.
  • Build. I rebuilt from source: 66 pages, no warnings, and the text matches the committed paper.pdf. Page 11 starts with References, so the main text still ends on page 10. check_paper_references.py passes.
  • Codex finished with no comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant