Skip to content

Preserve the vector key scale and include outside keys in tight exports - #10

Open
zsy1207 wants to merge 2 commits into
skyborn-org:mainfrom
zsy1207:fix/vector-key-scale-and-bounds
Open

zsy1207 wants to merge 2 commits into
skyborn-org:mainfrom
zsy1207:fix/vector-key-scale-and-bounds

Conversation

@zsy1207

@zsy1207 zsy1207 commented Dec 4, 2026

Copy link
Copy Markdown

Use the plot's positive length mapping directly for the reference arrow. This keeps a 4 px glyph and its reference key on the same scale, including on wide axes.

Report the union of visible child extents after laying out the key with the active renderer. Allow the parent artist to contribute extents beyond the axes, so tight exports include external keys. Regression tests measure the reference arrow in display pixels and inspect the actual saved PNG.

Tests

Local validation: 448 Python tests passed and 4 were skipped.

Closes #9.

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.

Curly-vector keys enlarge short reference arrows and disappear from tight exports

1 participant