-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve plot grid appearance #2412
Conversation
crates/egui/src/widgets/plot/mod.rs
Outdated
@@ -331,6 +332,7 @@ impl Plot { | |||
show_background: true, | |||
show_axes: [true; 2], | |||
grid_spacers: [log_grid_spacer(10), log_grid_spacer(10)], | |||
sharp_grid_lines: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can discuss whether to make this the default or not. I personally don't mind the slight aliasing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I prefer it on (as is currently the case)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now enabled by default in 848310d.
crates/egui/src/widgets/plot/mod.rs
Outdated
// Sort the axes by contrast so that those with higher contrast are drawn in front. | ||
axes_shapes.sort_by(|(_, contrast1), (_, contrast2)| contrast1.total_cmp(contrast2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe "strength" is a slightly better word?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in 848310d.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice fixes!
CHANGELOG.md
Outdated
@@ -38,6 +38,7 @@ NOTE: [`epaint`](crates/epaint/CHANGELOG.md), [`eframe`](crates/eframe/CHANGELOG | |||
* Tooltips are only shown when mouse pointer is still ([#2263](https://github.com/emilk/egui/pull/2263)). | |||
* Make it slightly easier to click buttons ([#2304](https://github.com/emilk/egui/pull/2304)). | |||
* `egui::color` has been renamed `egui::ecolor` ([#2399](https://github.com/emilk/egui/pull/2399)). | |||
* Improved plot grid appearance ([#2412](https://github.com/emilk/egui/pull/2412)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move to the ## Unreleased
section!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved in 848310d.
crates/egui/src/widgets/plot/mod.rs
Outdated
@@ -331,6 +332,7 @@ impl Plot { | |||
show_background: true, | |||
show_axes: [true; 2], | |||
grid_spacers: [log_grid_spacer(10), log_grid_spacer(10)], | |||
sharp_grid_lines: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I prefer it on (as is currently the case)
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Closes #2411.
Before/After