Skip to content

Commit da4a518

Browse files
committed
fix: wrap Physics Verification title to prevent aspect ratio distortion
1 parent db9df0d commit da4a518

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

-76 Bytes
Loading
-113 KB
Loading

end_to_end_figures.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@
5555

5656
plt.figure(figsize=(8, 4))
5757
plt.plot(freqs, mag, color='purple', alpha=0.7)
58-
plt.title(
59-
f'Layer 2 (Verification) - Envelope Spectrum\nPhysics Verdict: {diag["verdict"]} | Root Cause: {diag["root_cause"]}'
58+
import textwrap
59+
60+
verdict_text = textwrap.fill(
61+
f'Physics Verdict: {diag["verdict"]} | Root Cause: {diag["root_cause"]}', width=80
6062
)
63+
plt.title(f'Layer 2 (Verification) - Envelope Spectrum\n{verdict_text}', fontsize=10)
6164
plt.xlabel('Frequency (Hz)')
6265
plt.ylabel('Magnitude')
6366
plt.xlim(0, 500) # Zoom into the interesting region

0 commit comments

Comments
 (0)