Skip to content

Refresh curly-vector geometry when the axes display transform changes - #8

Open
zsy1207 wants to merge 1 commit into
skyborn-org:mainfrom
zsy1207:fix/curly-vector-display-scaling
Open

zsy1207 wants to merge 1 commit into
skyborn-org:mainfrom
zsy1207:fix/curly-vector-display-scaling

Conversation

@zsy1207

@zsy1207 zsy1207 commented Dec 4, 2026

Copy link
Copy Markdown

Apply the axes aspect before computing initial geometry and refresh existing line and head collections when the effective view changes. Keep the reference key's scale in sync even when the key is measured or drawn first. Repeated draws of the same view reuse the existing geometry.

The regression tests measure horizontal and vertical shafts and their reference keys in final display pixels on equal-aspect Matplotlib and Cartopy PlateCarree axes, including after resizing a constrained-layout figure. They also check that filled heads become visible after a pan and that a serialized figure can be restored and redrawn.

Tests

Local validation: 450 Python tests passed and 4 were skipped, including successful checks for final display lengths after resizing.

Closes #7.

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.

Equal-aspect axes distort curly-vector pixel lengths on the first draw and after resize

1 participant