Skip to content

Conversation

joaofl
Copy link
Contributor

@joaofl joaofl commented Feb 5, 2025

Re-open the following PR originally open by @aholtzma-am:
emilk/egui#4539 (comment)

The logic for determining bounds was not using the values supplied by include_x()/include_y() after the initial plot call when auto_bounds() was false. This change forces the use of the manual limits when default_auto_bounds is false.

Closes #25

I did not try the suggested approach (emilk/egui#4539 (comment)), as I would need some more in-depth understanding before risking breaking other stuff.

Maybe, with some support, I could try to implement that approach in a separate PR.

@joaofl joaofl changed the title Joao/fix include xy issue with auto bounds off Fix include_{xy} issue when auto bounds is off Feb 5, 2025
@joaofl joaofl force-pushed the joao/fix-include-xy-issue-with-auto-bounds-off branch from cdf9be2 to f687518 Compare February 13, 2025 18:18
@emilk emilk merged commit 7dcb501 into emilk:main Apr 3, 2025
@emilk emilk added enhancement New feature or request bug Something isn't working include in changelog This change will be included in the changelog and removed enhancement New feature or request labels Apr 3, 2025
emilk added a commit that referenced this pull request Apr 7, 2025
* This broke in #74

The problem was caused by using `PlotUi::set_auto_bounds`. I don't fully
understand it all.

I really don't like this. The code is confusing and lacking of tests,
but as usual, I don't have time to dig into it right now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working include in changelog This change will be included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

egui_plot 0.25.0 - No auto_bounds + include_X/Y does not render anything until double click
2 participants