Skip to content

[Bug]: Axis and grid panes out of sync, regression in 3.11 #31989

Description

@HakonSohoel

Bug summary

When inverting an axis on an Axes3D object, the axis and the background pane gets out of sync.

Code for reproduction

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(projection="3d")
ax.invert_zaxis()

plt.show()

Actual outcome

Image

Expected outcome

Image

Additional information

This worked in version 3.10.9

Operating system

OS X

Matplotlib Version

3.11.0

Matplotlib Backend

macosx

Python version

3.13.12

Jupyter version

No response

Installation

uv

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions