You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FIX: keep sub-pixel line marks visible when snapping (#20243)
PathSnapper rounds each vertex to the nearest pixel. A line mark shorter
than one pixel then has both endpoints rounded onto the same pixel, so it
collapses to zero length and is not drawn at all. eventplot builds every
event as its own two-point segment, so plotting many closely spaced events
silently dropped most of them.
When the opening LINETO of a subpath snaps onto its MOVETO even though the
raw segment was non-degenerate, extend the endpoint by one pixel along the
segment's dominant axis so a single pixel is still drawn. Limiting this to
the first segment of a subpath leaves polygon outlines (bars, markers,
grids) snapping exactly as before.
0 commit comments