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
Vertical annotations shrink subplots when a figure handle's tight_layout is set to True. The expectation is that annotations would overlap the subplots.
This is an error in the documentation, in that it wasn't updated when this was changed.
As you can imagine, there are just as many complaints when the annotations are clipped or ignored, so we a) made the default that they are not ignored, and b) gave you a toggle to allow them to be ignored. All artists have a set_in_layout method, which you can set to False here.
@jklymak Thank you for the help on this one, and also the quick turn around. Yeah, its easy to imagine the complaints. Glad to hear that the solution to this was as easy as setting set_in_layout. Thanks again!
Bug report
Bug summary
Vertical annotations shrink subplots when a figure handle's
tight_layout
is set to True. The expectation is that annotations would overlap the subplots.Looking at the documentation...
https://matplotlib.org/3.2.2/tutorials/intermediate/tight_layout_guide.html#caveats
With that in mind,
tight_layout
should not considerText
annotations, and shouldn't adjust the subplot size when added.Code for reproduction
Actual outcome
Expected outcome
In this case,
tight_layout
is set to FALSE just to see visually what it looks like with the text overlayedMatplotlib version
print(matplotlib.get_backend())
): Qt5Aggconda
conda-forge
The text was updated successfully, but these errors were encountered: