Skip to content

mplot3d projection results in non-orthogonal axes #8894

Closed

Description

@eric-wieser

When viewed from above, the default grids are not square, but are distorted into diamonds/parallelograms depending on the vertical rotation angle:

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()
ax = fig.gca(projection='3d')
ax.view_init(90,45)  # or by manual rotation
plt.show()

image

The projection should not include non-uniform scale (or skew) components by default. Furthermore, it's not at all obvious how to fix this as a user.

Couldn't find another issue that directly reports this, so put it here.

Related are #1104 and #1077

Activity

  1. changed the title [-]Mplot3d project results in non-orthogonal axes[/-] [+]mplot3d projection results in non-orthogonal axes[/+] on Jul 16, 2017
  2. added 2 commits that reference this issue on Jul 16, 2017
    bc8593d
    88fb88a
  3. WeatherGod commented on Jul 19, 2017

    @WeatherGod
    Member

    Orthographic projection was added as an option in #8326

    Is that what you are looking for?

  4. eric-wieser commented on Jul 19, 2017

    @eric-wieser
    ContributorAuthor

    No, I'm simply looking for correct perspective projection - the current implementation adds a linear distortion after projection, dependent on the aspect ratio of the window, which is something a perspective camera should never do.

  5. eric-wieser commented on Jul 19, 2017

    @eric-wieser
    ContributorAuthor

    Orthographic projection is also broken in exactly the same way

    image

  6. WeatherGod commented on Jul 19, 2017

    @WeatherGod
    Member
  7. added 4 commits that reference this issue on Mar 26, 2019
    bbeb534
    28e15ff
    1d4a513
    77eae0e
  8. added a commit that references this issue on Apr 5, 2019
    3d3b42e
  9. added 2 commits that reference this issue on Jun 24, 2019
    4baa40a
    64f197b
  10. added a commit that references this issue on Feb 11, 2020
    4479a0f
  11. added this to the v3.3.0 milestone on Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions