Skip to content

Commit f400a57

Browse files
committed
style: remove explanatory text from figure title to meet IEEE TII standards
1 parent 32c316c commit f400a57

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

-39.7 KB
Loading

end_to_end_figures.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,7 @@
5555

5656
plt.figure(figsize=(8, 4))
5757
plt.plot(freqs, mag, color='purple', alpha=0.7)
58-
import ast # noqa: E402
59-
import textwrap # noqa: E402
60-
61-
cause_str = str(diag['root_cause'])
62-
try:
63-
parsed_cause = ast.literal_eval(cause_str)
64-
if isinstance(parsed_cause, dict) and 'statement' in parsed_cause:
65-
cause_str = parsed_cause['statement']
66-
except (ValueError, SyntaxError):
67-
pass
68-
69-
verdict_text = textwrap.fill(
70-
f'Physics Verdict: {diag["verdict"]} | Root Cause: {cause_str}', width=80
71-
)
72-
plt.title(f'Layer 2 (Verification) - Envelope Spectrum\n{verdict_text}', fontsize=10)
58+
plt.title('Layer 2: Envelope Spectrum (Physics Verification)', fontsize=12)
7359
plt.xlabel('Frequency (Hz)')
7460
plt.ylabel('Magnitude')
7561
plt.xlim(0, 500) # Zoom into the interesting region

0 commit comments

Comments
 (0)