-
Notifications
You must be signed in to change notification settings - Fork 530
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
When the mouse scrolls, how to ensure that the range of the y-axis and the range of the x-axis remain at a fixed scale. #111
Comments
It's not currently possible. Each axis will independently zoom by 10% of its own range. We could introduce an |
@epezent This feature would be extremely useful. Locking the aspect ratio between the x- and y-axes is a staple feature of most plotting frameworks. |
Roger that. I'm looking into it. |
This would be very useful to me if made available in Dear PyGUI (related issue: hoffstadt/DearPyGui#305). |
I have this mostly working, but in the process I've made several changes to to how axes are handled in general. So it's taking a bit longer than expected. Hope to merge soon. |
This work has been completed and merged to master. Enabled with Please review and post back if you find issues. It ended up being a bit more nuanced than I anticipated, so there may be a chance I missed an edge case. |
i think his problem not this,he want x or y axis could be lock,or lock range ( scale factor?) |
i think problem is scale factor? Enabled with ImPotFlags_Equal cant fix |
When the mouse scrolls, how to ensure that the r ange of the y-axis and the range of the x-axis remain at a fixed scale.
The text was updated successfully, but these errors were encountered: