Skip to content

[Bug]: 3d interactive axes rotation is uninituitive #26492

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

Closed
anntzer opened this issue Aug 10, 2023 · 3 comments
Closed

[Bug]: 3d interactive axes rotation is uninituitive #26492

anntzer opened this issue Aug 10, 2023 · 3 comments

Comments

@anntzer
Copy link
Contributor

anntzer commented Aug 10, 2023

Summary

Clicking and moving the mouse e.g. left-right over the top part of a 3d axes seems to always rotate the axes along the data z-direction, no matter what that direction is on screen. This means that if the data z-axis is oriented "normal to the screen", then the same mouse motion can rotate the axes visually clockwise or counterclockwise (first two cases below); if the data z-axis is oriented "in the screen" then the rotation is again different (last case below).

3d.mov

Proposed fix

Probably(?) mouse-interactive rotations should be relative to screen directions rather than data axes directions.

For the record, the axes above were generated with

a0, a1, a2 = plt.figure(figsize=(12, 4)).subplots(1, 3, subplot_kw=dict(projection="3d", xlabel="x", ylabel="y", zlabel="z"))
a0.elev, a0.azim, a0.roll = -90, 90, 0
a1.elev, a1.azim, a1.roll = 90, 90, 0
a2.elev, a2.azim, a2.roll = 0, 90, 0
@WeatherGod
Copy link
Member

WeatherGod commented Aug 11, 2023 via email

@patilniraj8
Copy link

You can reach out to us through this mail nirajpatil849@gmail.com We would like to contribute in this

@anntzer
Copy link
Contributor Author

anntzer commented May 27, 2024

Superseded by #28288.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants