Skip to content

[Bug]: The zlabel on 3D axes will be cut when using '%matplotlib inline' in Jupyter #28117

Description

@Saltsmart

Bug summary

The zlabel on 3D axes will be cut when using '%matplotlib inline' in Jupyter, but it's no problem to use non-interactive backends.

Code for reproduction

from matplotlib import pyplot as plt

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

ax.set_zlabel("Z Label")

plt.show()

Actual outcome

image

Expected outcome

image

Additional information

No response

Operating system

No response

Matplotlib Version

3.8.0

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

Python 3.11.5

Jupyter version

6.5.4

Installation

conda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions