-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Open
Labels
topic: geometry managerLayoutEngine, Constrained layout, Tight layoutLayoutEngine, Constrained layout, Tight layouttopic: mplot3d
Description
Bug summary
I create a figure with a constrained layout and add a 3D-subplot at the top and a 2D-subplot at the bottom, but the tick labels of the 3D-subplot overlap with the title of the 2D-subplot.
Code for reproduction
import matplotlib.pyplot as plt
fig = plt.figure(constrained_layout=True)
ax1 = fig.add_subplot(2, 1, 1, projection='3d')
ax1.set_title('3D Plot')
ax2 = fig.add_subplot(2, 1, 2)
ax2.set_title('2D Plot')
plt.show()Actual outcome
Expected outcome
Additional information
No response
Operating system
No response
Matplotlib Version
3.10.8
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: geometry managerLayoutEngine, Constrained layout, Tight layoutLayoutEngine, Constrained layout, Tight layouttopic: mplot3d