Skip to content

add legend title #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

add legend title #105

wants to merge 2 commits into from

Conversation

bircni
Copy link
Contributor

@bircni bircni commented May 4, 2025

This pull request introduces enhancements to the Legend functionality in the egui_plot library, updates the plot demos to include legend titles, and modifies related tests and snapshots to reflect these changes. The most significant changes include adding a title property to the Legend struct, updating plot demos to utilize this new feature, and adjusting test infrastructure and snapshots accordingly.

Enhancements to Legend functionality:

  • egui_plot/src/legend.rs: Added a title property to the Legend struct, with a default value of None. Introduced a new title method to set the legend title and updated the LegendWidget to display the title if it is set. [1] [2] [3] [4]

Updates to plot demos:

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.

Title (or label) for legend.
1 participant