Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve plot grid appearance #2412

Merged
merged 8 commits into from
Dec 19, 2022
Merged

Improve plot grid appearance #2412

merged 8 commits into from
Dec 19, 2022

Conversation

s-nie
Copy link
Contributor

@s-nie s-nie commented Dec 8, 2022

Closes #2411.

Before/After
Screenshot_20221208_144531
Screenshot_20221208_144447

@@ -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,
Copy link
Contributor Author

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.

Copy link
Owner

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)

Copy link
Contributor Author

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.

Comment on lines 1323 to 1324
// 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));
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed in 848310d.

Copy link
Owner

@emilk emilk left a 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)).
Copy link
Owner

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved in 848310d.

@@ -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,
Copy link
Owner

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)

s-nie and others added 3 commits December 9, 2022 10:03
@emilk emilk merged commit 7e9c7da into emilk:master Dec 19, 2022
@s-nie s-nie deleted the plot-grid-appearance branch December 19, 2022 09:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve plot grid appearance
2 participants