FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

3D plot camera-rotation does not update with mouse movement when using the MacOS backend · Issue #8814 · matplotlib/matplotlib · GitHub

Repository navigation

3D plot camera-rotation does not update with mouse movement when using the MacOS backend #8814

Closed

Description

When displaying any simple 3D plot, rotation by dragging with the mouse during a left-click no longer properly updates with the cursor's movement, other than at the very beginning. Using a right-click to zoom works as expected, however, updating the view throughout the cursor's movement.

This appears to happen with any 3D plot, so for a minimal example:

import matplotlib.pyplot as plt, mpl_toolkits.mplot3d
fig = plt.figure()
ax = fig.add_subplot(111, projection = '3d')
ax.scatter([1,0,0,0,0,-1], [0,1,0,0,-1,0], [0,0,1,-1,0,0])
plt.show()

The problem appears to be that the image does not refresh during camera rotation movements, excluding at the very start. Thus, in order to see the result of a rotation, a new (and preferably small) rotation must be initiated. Alternately, a zoom action may be performed, as the view updates throughout the entirety of the zoom action.

While this bug is present in Matplotlib 2.0.2, it was not present in (at least some) versions prior to 2.0.0. Edit: This bug is only present with the MacOS backend, and was maybe not present in MacOS Mavericks version of that backend, while definitely being present in Sierra.

Edit Edit: This bug is present with Matplotlib 2.0.2 using the MacOS backend on MacOS Sierra, but was not present with at least some versions of Matplotlib just prior to 2.0.0 using the MacOS backend on MacOS X Mavericks.

Using default MacOS backends. Unsure if related to #8162.

Matplotlib version

  • Operating System: MacOS 10.12.5
  • Matplotlib Version: 2.0.2
  • Python Version: 3.4.6
  • Installed via MacPorts.

Activity

  1. WeatherGod commented on Jun 27, 2017

    Member
  2. AlexanderLarsRobinson commented on Jun 27, 2017

    Author

    I can confirm that the problem does not extend to the Qt4Agg backend.

    It is therefore likely that the upgrade which caused the issue on my end was not the upgrade of Matplotlib to 2.0, but rather the upgrade of MacOS from Mavericks to Sierra.

  3. changed the title [-]3D plot camera-rotation does not update with mouse movement[/-] [+]3D plot camera-rotation does not update with mouse movement when using the MacOS backend[/+] on Jun 27, 2017
  4. WeatherGod commented on Jun 27, 2017

    Member
  5. dstansby commented on Jun 29, 2017

    Member

    Can confirm this on OSX, using the macosx background, will try and bisect to find the cause.

  6. dstansby commented on Jun 29, 2017

    Member

    Hmm, this bisects to c4614b4

  7. added this to the milestone on Jun 30, 2017
  8. tacaswell commented on Oct 7, 2017

    Member

    @dstansby Did this get fixed?

  9. dstansby commented on Oct 7, 2017

    Member

    No, I'll put in a PR with the change that seems to fix it.

  10. modified the milestones: , on Oct 9, 2017
  11. added a commit that references this issue on Oct 20, 2017
    619e136
  12. modified the milestones: , v2.1.1 on Oct 21, 2017
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


      Back | FazBrowse Home | New Git URL