Repository navigation
feat(plot-cli): reference lines and labels (--hline/--vline/--abline, --title/--xlab/--ylab) - #7105
Conversation
…ab/--ylab labels (PMAT-7082) Pmat-Ticket: PMAT-7082 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Review finding on #7105: swapping hline/vline, the abline pair, or the label setters survived the SVG tests. Pmat-Ticket: PMAT-7104 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
# Conflicts: # crates/aprender-viz/src/plot_cli/cli.rs
|
Non-author review: PASS at head Lane: agy, claude-opus-5-5-high (agy gemini-4-hydrogen-high hit quota 429 first; errored lane not counted). Blocking findings: none. Acceptance (per-flag unit tests, malformed --abline refusal) is covered by the three new cli.rs tests and the mod.rs decorations test. Follow-ups (non-blocking):
CI at review time: ci / gate, gate, workspace-test SUCCESS; pr-light IN_PROGRESS; mg-reuse-self-test and runner-smells QUEUED. |
A reference line outside the data range fell outside the panel because trained_on used the data domains only. Pmat-Ticket: PMAT-7104 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
§13.11 rung 1 — quorum shadow verdict Shadow mode: this records a verdict and merges nothing. A refusal |
# Conflicts: # crates/aprender-viz/src/plot_cli/cli.rs
|
NON-AUTHOR REVIEW: PASS @253954c2edafae3101ead5ad92ab2c4563975e42 Lane: agy, claude-opus-5-5-high (gemini-4-hydrogen-high hit 429 quota). Diff-only review, nothing built or run. Zero blockers. The earlier PASS at 5dd4dcd no longer counts; this is the full diff at the new head. Should-fix (reviewer-reported; #1 partly visible in diff, "as f32" casts at mod.rs ~222-228 after finite() on f64; rest unconfirmed):
Receipt: /mnt/nvme-raid0/cop-inbox/handoff/agy/review-aprender-7105-253954c-agy.md |
What
crates/aprender-vizaccepts--hline <y>,--vline <x>,--abline <slope,intercept>,--title,--xlab,--ylab(two files, +194/-3). A malformed or non-finite value is refused.Measured (lambda, 2026-11-15, head 9b2160c = 5dd4dcd + review fix)
--hlinewidens the y scale and--vlinethe x scale, so a line outside the data range is drawn inside the panel. New testreference_lines_outside_the_data_widen_their_own_scale(hline 10 and vline -5 over data 1..3; a swap fails it). Cop run: lib 844 passed, full crate 965 passed, clippy rc 0, fmt rc 0.decorations_reach_the_right_geom_and_labelfails on all six).cargo test -p aprender-viz --features plot-cli --lib: 843 passed, 0 failed at 5dd4dcd (844 at 9b2160c) (cop run); fmt rc 0; clippy -D warnings rc 0. Three new tests: flag mapping, refusals, lines and labels reach the SVG.Known limits
Geom::hline/vline/abline), not a line-by-line port of the olderplot.rs; the CLI surface registry and docs are not updated.ont-delta: none
Closes #7104
Refs #7082
keep-open: #7082 this PR ports the decoration arguments only; geoms, the --spec file and exit codes are other slices
🤖 Generated with Claude Code