-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Clarify that constrained_layout and tight_layout conflict with each other #17339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, thats expected, or at least understood. You can use Edit: tight_layout and constrained_layout are not compatible. |
Maybe we should raise if calling |
Thats not particularly the problem here; constrained_layout is a bit of a red herring. |
Does that generate a warning then? |
If Regardless of using |
Its says We could raise a warning I suppose. |
At least on master we do warn:
This limitation of
|
Thanks for the explanations! |
Closes matplotlib#17339 by addressing the remaining open issue matplotlib#17339 (comment).
Bug report
Bug summary
Not sure if this an expected behaviour, but the colorbar seems to be ignored when using
tight_layout
. Example taken from the "Constrained Layout Guide" (https://matplotlib.org/3.1.3/tutorials/intermediate/constrainedlayout_guide.html#colorbars).Code for reproduction
Actual outcome
Expected outcome
This is the outcome before calling
plt.tight_layout()
Matplotlib version
print(matplotlib.get_backend())
): Qt5AggThe text was updated successfully, but these errors were encountered: