Skip to content
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

Automatically expand plot axes thickness to fit their labels #3921

Merged
merged 9 commits into from
Jan 30, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jan 30, 2024

Expand the plot axis thickness as the contained plot axis labels get wider.

This fixes a problem where the plot labels would otherwise get clipped.

plot-axis-expansion

@emilk emilk added the egui_plot Related to egui_plot label Jan 30, 2024
@emilk emilk merged commit 527f4bf into master Jan 30, 2024
36 checks passed
@emilk emilk deleted the emilk/improve-plot-labels branch January 30, 2024 11:45
@emilk emilk changed the title Expand plot axes thickness to fit their labels Automatically expand plot axes thickness to fit their labels Feb 5, 2024
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
Expand the plot axis thickness as the contained plot axis labels get
wider.

This fixes a problem where the plot labels would otherwise get clipped.


![plot-axis-expansion](https://github.com/emilk/egui/assets/1148717/4500a26e-4a11-401d-9e8e-2d98d02ef3b7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui_plot Related to egui_plot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant