Skip to content

Automatically expand plot axes thickness to fit their labels#3921

Merged
emilk merged 9 commits into
masterfrom
emilk/improve-plot-labels
Jan 30, 2024
Merged

Automatically expand plot axes thickness to fit their labels#3921
emilk merged 9 commits into
masterfrom
emilk/improve-plot-labels

Conversation

@emilk
Copy link
Copy Markdown
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
@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