Skip to content

set_{x,y,z}bound 3d limits are not persistent upon interactive rotation #18112

Closed
@anntzer

Description

@anntzer

Bug report

Bug summary

3D axes limits set using set_{x,y,z}bound are dropped when interactively rotating 3d axes.

Code for reproduction

import matplotlib.pyplot as plt

ax = plt.figure().add_subplot(projection="3d")
ax.plot([0, 1], [0, 1], [0, 1])
ax.set(xbound=[-1, 1], ybound=[-1, 1], zbound=[-1, 1])
# ax.set(xlim=[-1, 1], ylim=[-1, 1], zlim=[-1, 1])
plt.show()

then interactively rotate the axes with the mouse.

Actual outcome

The axes limits immediately snap back to [0, 1] (plus margins).

Expected outcome

Limits are respected (as with set_{x,y,z}lim).

Matplotlib version

  • Operating system: linux
  • Matplotlib version: master
  • Matplotlib backend (print(matplotlib.get_backend())): qt5agg
  • Python version: 38
  • Jupyter version (if applicable):
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions