-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[ENH]: Provide axis('equal')
for Axes3D
.
#22570
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
Comments
Ideally, it should be possible to do
So, basically, there is a different scaling for the z-axis compared to the x- and y-axes. You can see that from the grid blocks being rectangles (rather than squares, as for the bottom surface). |
axis('equal')
for Axes3D
.
You can get a bit closer by using: |
Hi @oscargus, |
B.t.w., this is a successor of #1077. |
Bug summary
In the example below, I wish to observe a unitary 3D cube in its diagonal axis (1, 1, 1).
azimut and elevation angle should be both 45°, normally.
Why do I need to set elevation = 28° ????
Thanks,
Patrick
Code for reproduction
Actual outcome
Expected outcome
view_init(azim=45, elev=45) and not view_init(azim=45, elev=28) to have the expected 3D representation
Additional information
No response
Operating system
Windows
Matplotlib Version
3.4.2
Matplotlib Backend
No response
Python version
Python 3.7.7
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: