You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using subfigures without setting a suptitle for the root figure, the top of the plot is clipped out. This includes the suptitle for the top subfigure.
OK, this bug is reproducible with fig.savefig('boo.png', bbox_inches='tight'). Apparently the subfigure subtitles are not making it into the bbox calculation.
If you save the plot normally (i.e. w/o bbox_inches='tight') it works fine. The only reason you are seeing clipping is because the inline backend clips to visible artists. The todo here is to make sure subfigure suptitles end up in the bbox search tree.
Bug summary
When using subfigures without setting a suptitle for the root figure, the top of the plot is clipped out. This includes the suptitle for the top subfigure.
Code for reproduction
Actual outcome
Expected outcome
Additional information
No response
Operating system
Ubuntu
Matplotlib Version
3.4.3
Matplotlib Backend
module://ipykernel.pylab.backend_inline
Python version
3.8
Jupyter version
6.0.3
Installation
conda
The text was updated successfully, but these errors were encountered: