-
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
Inconsistent resize behavior for plots #1174
Comments
Also related to this. Changing the I think it would be a better user experience to make sure that the same amount of data on one axis will be kept visible. Either way I think it's more important that this is consistent across resize/aspect-ratio. The code regarding changing the aspect ratio is here egui/egui/src/widgets/plot/transform.rs Lines 279 to 285 in 4db6984
Changing this would be trivial, and would simplify the code a bit by always expanding/shrinking one axis. The code regarding resizing is a bit more complex: egui/egui/src/widgets/plot/mod.rs Lines 308 to 330 in 4db6984
But about the same would apply here. |
Just stumbled upon this issue. I think #1184 should fix it. |
Yes that is pretty much exactly what I had in mind, and more. |
The resize behavior is different when a plot is "centered" (after double-click) vs. when the position is moved:
egui-resize-plot.mp4
To Reproduce
Steps to reproduce the behavior:
Desktop
master
version, commit 3333d63The text was updated successfully, but these errors were encountered: