Automatic inference for semantic legends for marker/scatter size#749
Automatic inference for semantic legends for marker/scatter size#749cvanelteren wants to merge 2 commits into
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
|
Oh, despite using matplotlib for a long time, I didn't realize '.' and 'o' are different markers. I mistakenly thought they were the same. My bad! Sorry to bother. |
How about this @gepcel ?
This PR makes sizelegend line up with scatter marker sizing without forcing users to manually reconstruct UltraPlot’s size-scaling rules. Scatter collections now retain their effective size-scale metadata, and sizelegend() can reuse that information by default to infer matching legend marker sizes from an existing compatible scatter plot, while still allowing explicit overrides and preserving direct area=True / area=False behavior when requested. The change also adds regression coverage for absolute- size, scaled-size, compatibility fallback, and explicit override cases so the legend behavior stays predictable.