feat(plotnine): implement slope-basic#9906
Conversation
Regen from quality 80. Addressed:
- cross-library similarity: replaced generic "Product A-J" entities
(identical to the bokeh implementation) with a real-world dataset —
national coal share of electricity generation, 2014 vs 2024, across
10 named countries
- output filename: now saves plot-{THEME}.png via ANYPLOT_THEME instead
of a hardcoded plot.png
- label crowding: chose start/end values with guaranteed >=7-point
gaps at each time point instead of relying on ad-hoc nudging
- panel border: removed the full rectangle frame (DE-02) in favor of a
borderless slope chart with a subtle horizontal gridline only
- title branding fixed from stale "pyplots.ai" to "anyplot.ai"
- direction colors moved to Imprint palette (#009E73 increase /
#AE3030 decrease), replacing the previous off-palette blue/yellow
- theme-adaptive chrome (title/axis/legend/background) driven by
ANYPLOT_THEME per the plotnine library prompt
- canvas locked to the canonical 8x4.5in @ 400dpi -> 3200x1800
Strengths kept: long-format data for line geoms with separate
DataFrames for endpoint labels, entity+value combined left labels,
increase/decrease color storytelling.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
AI Review - Attempt 1/3Image Description
Score: 85/100
Visual Quality (26/30)
Design Excellence (15/20)
Spec Compliance (15/15)
Data Quality (13/15)
Code Quality (10/10)
Library Mastery (6/10)
Score Caps Applied
Strengths
Weaknesses
Issues Found
AI Feedback for Next Attempt
Verdict: REJECTED |
Attempt 1/4 - 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/3
Image Description
Score: 79/100
Visual Quality (23/30)
Design Excellence (11/20)
Spec Compliance (14/15)
Data Quality (15/15)
Code Quality (10/10)
Library Mastery (6/10)
Score Caps Applied
Strengths
Weaknesses
Issues Found
AI Feedback for Next Attempt
Verdict: REJECTED |
Attempt 2/4 - fixes based on AI review
🔧 Repair Attempt 2/4Applied fixes based on AI review feedback. Status: Repair completed, re-triggering review... |
AI Review - Attempt 3/3Image Description
Score: 93/100
Visual Quality (30/30)
Design Excellence (15/20)
Spec Compliance (15/15)
Data Quality (15/15)
Code Quality (10/10)
Library Mastery (8/10)
Score Caps Applied
Strengths
Weaknesses
Issues Found
AI Feedback for Next Attempt
Verdict: APPROVED |
Implementation:
slope-basic- python/plotnineImplements the python/plotnine version of
slope-basic.File:
plots/slope-basic/implementations/python/plotnine.pyParent Issue: #981
🤖 impl-generate workflow