Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature: add LegendEntry and pie wedge legend handler#571

Merged
cvanelteren merged 14 commits into
mainUltraplot/UltraPlot:mainfrom
feat/legend-entry-handleUltraplot/UltraPlot:feat/legend-entry-handleCopy head branch name to clipboard
Feb 14, 2026
Merged

Feature: add LegendEntry and pie wedge legend handler#571
cvanelteren merged 14 commits into
mainUltraplot/UltraPlot:mainfrom
feat/legend-entry-handleUltraplot/UltraPlot:feat/legend-entry-handleCopy head branch name to clipboard

Conversation

@cvanelteren

@cvanelteren cvanelteren commented Feb 8, 2026

Copy link
Copy Markdown
Collaborator

This PR introduces uplt.LegendEntry, a lightweight custom legend-handle helper that removes the need for manual Line2D([], []) boilerplate, and adds a default legend handler for pie wedges so pie-chart legends render wedge-shaped keys instead of generic rectangles while still honoring user handler_map overrides. It includes targeted tests for both features and is intended to close #496.

@cvanelteren cvanelteren marked this pull request as ready for review February 10, 2026 00:04
@cvanelteren cvanelteren enabled auto-merge (squash) February 14, 2026 11:58
@cvanelteren cvanelteren merged commit b6d7343 into main Feb 14, 2026
23 of 25 checks passed
@cvanelteren cvanelteren deleted the feat/legend-entry-handle branch February 14, 2026 12:09
cvanelteren added a commit that referenced this pull request Feb 14, 2026
K-Mirembe-Mercy pushed a commit to K-Mirembe-Mercy/UltraPlot that referenced this pull request Mar 22, 2026
* Add LegendEntry helper for custom legend handles

* Add default pie wedge legend handler

* Refresh baseline cache key for hash-seed-stable compares

(cherry picked from commit 1ff58be)

* CI: invalidate cached baselines to stop stale centered-legend image diffs
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.

Feature: Add Pie chart legend handler

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.