Skip to content

feat: line arrows with waypoints, dashed boxes, band - #4

Merged
vitusbenson merged 3 commits into
mainfrom
diagram-line-arrows
Nov 19, 2026
Merged

vitusbenson merged 3 commits into
mainfrom
diagram-line-arrows

Conversation

@vitusbenson

@vitusbenson vitusbenson commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator
  • diagram_arrow(style="line"): flowchart connector, stroked shaft + filled head sized in pt; via= routes through corners (head on last segment); linestyle; join/cap miter/butt, overridable via kwargs
  • diagram_box(linestyle=, hatch=); rounding=0 draws a plain rectangle (square boxstyle)
  • band(ax, x, low, high, along="x"|"y", label=): one shaded range; lines, timeseries, profile now draw their bands through it (same fill_between call with linewidth 0 as before, renders unchanged; linewidth= via kwargs gives an outline)
  • needed by torchtransport eval/plotting (paper flowcharts off hand-built patches, pixel-identical; fill_betweenx sites onto band)
  • tests: line arrows, via (list, array, empty, None), box linestyle/hatch/defaults, band along x/y, hatch, outline, NaN gap, descending levels; bands of lines/timeseries/profile stay flat (linewidth 0) and under the lines; suite 536 passed; ruff, mkdocs build --strict, docs examples clean
  • additive; release as 1.2.0

- diagram_arrow(style="line"): stroked connector, filled head in pt; via= corners; linestyle
- line arrow join/cap overridable through kwargs
- diagram_box(linestyle=, hatch=); rounding=0 -> plain rectangle
- lines, timeseries, profile draw their bands through it
@vitusbenson vitusbenson changed the title feat(diagrams): line arrows with waypoints, dashed and hatched boxes feat: line arrows with waypoints, dashed boxes, band Nov 19, 2026
@vitusbenson vitusbenson mentioned this pull request Nov 19, 2026
- diagram_arrow: via=None default; numpy waypoints no longer raise
- band: linewidth overridable through kwargs (was a duplicate-keyword TypeError)
- tests: empty/None/array via, default box, band hatch/outline/NaN/descending, bands of lines/timeseries/profile flat and under the lines
@vitusbenson
vitusbenson merged commit ee4ded7 into main Nov 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant