Reserve Matplotlib legend layout space [mpl compatibility]#254
Reserve Matplotlib legend layout space [mpl compatibility]#254sselvakumaran wants to merge 4 commits into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Merging this PR will degrade performance by 15.87%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
Summary
borderpad=.4,labelspacing=.5,borderaxespad=.5, 2em handles and column spacing)$labels such as the price legend's$ 2.00This is stacked on #248 (
agent/line-legend-gallery-compat).Exact Matplotlib gallery comparisons
Outside top legend:
horizontal_barchart_distributionThe previous legend touched the axes border/first row. The new measured reservation leaves the same ~0.5-font border-to-axes gap as Matplotlib.
The clipped left category labels (
Questionappearing asestion) are intentionally not claimed as fixed here: the exact latest-heads union shows #240 does not resolve that canvas-gutter defect. A separate general gutter follow-up is required for full visual completion.Titled scatter legends:
scatter_with_legendThe previous static layout truncated
RankingtoRa...and undersized title/entry bounds. The new boxes use the title and every entry when measuring width and height.Verification
547 passed, 65 skippedintests/pyplot22 passedruff checkandgit diff --checkpass