From 1c4672e465b9145d71cfddeae4e2ebaeeef2964f Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Wed, 8 Apr 2026 14:35:20 -0500 Subject: Figures 3 and 4: fix aspect ratio (fig3 was squeezed strip) and key-finding label overlap (fig4) Per user feedback: - fig4_penalty_rescue.pdf (Figure 3 in paper): was figsize=(13, 3.5), aspect 3.7:1, which rendered as a thin strip with squeezed subplot content. Increased height to figsize=(13, 6.0), aspect 2.2:1. Much taller panels that actually show axis labels and legends readably. - fig5_cross_arch_summary.pdf (Figure 4 in paper): the 'Key finding' italic text annotation at y=-1.0 in axes transform was overlapping with the multiline architecture y-tick labels at the bottom of the second subplot. Moved to y=-1.55 and increased figsize height from 3.5 to 4.2 so the lower annotation still fits in bbox_inches='tight' crop. - Also bumped includegraphics width from 0.92\linewidth to \linewidth for both figures so they use the full text width. Main content still exactly 9 pages within E&D budget. Co-Authored-By: Claude Opus 4.6 (1M context) --- paper/figures/render_fig5_cross_arch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'paper/figures/render_fig5_cross_arch.py') diff --git a/paper/figures/render_fig5_cross_arch.py b/paper/figures/render_fig5_cross_arch.py index e163956..9ad9ce2 100644 --- a/paper/figures/render_fig5_cross_arch.py +++ b/paper/figures/render_fig5_cross_arch.py @@ -26,7 +26,7 @@ dfa = np.array([ bp = np.zeros_like(dfa) # BP: passes everywhere -fig, axes = plt.subplots(1, 2, figsize=(11, 3.5)) +fig, axes = plt.subplots(1, 2, figsize=(11, 4.2)) for ax, mat, title in [(axes[0], bp, "BP-trained: protocol passes"), (axes[1], dfa, "DFA-trained: protocol verdict by architecture")]: @@ -42,8 +42,8 @@ for ax, mat, title in [(axes[0], bp, "BP-trained: protocol passes"), ax.set_yticklabels(arches, fontsize=9) ax.set_title(title, fontsize=10) -# Highlight the key finding -axes[1].text(0.5, -1.0, "Key finding: diagnostic (b) BP-grad-floor fires only on terminal-LN architectures.\n" +# Highlight the key finding — place well below the multiline x/y tick labels to avoid overlap +axes[1].text(0.5, -1.55, "Key finding: diagnostic (b) BP-grad-floor fires only on terminal-LN architectures.\n" "Across the 5 architecture cases tested, (b) is restricted to the with-terminal-LN family.", ha="center", fontsize=9, style="italic", transform=axes[1].transAxes) -- cgit v1.2.3