feat(altair): implement spectrogram-mel#8419
Conversation
Regen from quality 91. Addressed:
- Full theme support (ANYPLOT_THEME, PAGE_BG, INK, INK_SOFT, ELEVATED_BG) — was hardcoded light colors only
- Fixed output filenames to plot-{THEME}.png / plot-{THEME}.html
- Fixed canvas: width=620, height=320, scale_factor=4.0 + PIL pad to 3200×1800
- Moved "440 Hz Tone" annotation from x=3.5 → x=3.0 to avoid right-edge cramping
- Increased subtitle font (now 14px at scale=4 → 56 source-px, up from 17×3=51)
- All chrome tokens (axis, title, legend) now theme-adaptive
- configure_view fill=PAGE_BG for proper dark background in chart area
- Subtitle shortened to fit within view width (subtitle expansion caused width to overshoot)
- Run with python -P to avoid self-import conflict (altair.py name vs altair lib)
AI Review - Attempt 1/3Image Description
Score: 86/100
Visual Quality (27/30)
Design Excellence (13/20)
Spec Compliance (13/15)
Data Quality (15/15)
Code Quality (9/10)
Library Mastery (9/10)
Score Caps Applied
Strengths
Weaknesses
Issues Found
AI Feedback for Next Attempt
Verdict: REJECTED |
Attempt 1/3 - fixes based on AI review
🔧 Repair Attempt 1/4Applied fixes based on AI review feedback. Status: Repair completed, re-triggering review... |
AI Review - Attempt 2/3Image Description
Score: 87/100
Visual Quality (28/30)
Design Excellence (12/20)
Spec Compliance (15/15)
Data Quality (15/15)
Code Quality (10/10)
Library Mastery (7/10)
Score Caps Applied
Strengths
Weaknesses
Issues Found
AI Feedback for Next Attempt
Verdict: APPROVED |
Implementation:
spectrogram-mel- python/altairImplements the python/altair version of
spectrogram-mel.File:
plots/spectrogram-mel/implementations/python/altair.pyParent Issue: #4672
🤖 impl-generate workflow