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
{{ message }}
Repository navigation
[ENH]: UserWarning: The figure layout has changed to tight #26535
Can you say more about the circumstances where you see the warning? If you set up your figure with constrained layout and then called tight_layout, then these two things are mutually exclusive so we throw the warning because we think trying to use both was a mistake. If you are seeing the warning because you called tight_layout twice then that was a mistake in Matplotlib and has been fixed ready for the next release (#26300).
You’re right: I called tight_layout twice. Now that I removed the first one the warning has disappeared. Thanks!
Barna
From: Ruth Comer ***@***.***>
Sent: Wednesday, August 16, 2023 08:52
To: matplotlib/matplotlib ***@***.***>
Cc: barnakissdr ***@***.***>; Author ***@***.***>
Subject: Re: [matplotlib/matplotlib] [ENH]: UserWarning: The figure layout has changed to tight (Issue #26535)
Can you say more about the circumstances where you see the warning? If you set up your figure with constrained layout and then called tight_layout, then these two things are mutually exclusive so we throw the warning because we think trying to use both was a mistake. If you are seeing the warning because you called tight_layout twice then that was a mistake in Matplotlib and has been fixed ready for the next release (#26300 <#26300> ).
—
Reply to this email directly, view it on GitHub <#26535 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BBT4PCIO4K3RIMSECCGGAITXVRUXZANCNFSM6AAAAAA3SBK4KU> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/BBT4PCKDIRIQ4JCJK7NFZTDXVRUXZA5CNFSM6AAAAAA3SBK4KWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTEEOVSU.gif> Message ID: ***@***.*** ***@***.***> >
OK great, are you happy to close this issue then? With version 3.8, you should be able to call tight_layout as many times as you want and the warning should not appear. The release candidate is out on PyPI if you want to try it out. https://pypi.org/project/matplotlib/3.8.0rc1/
Activity
rcomer commentedon Aug 16, 2023
Can you say more about the circumstances where you see the warning? If you set up your figure with constrained layout and then called
tight_layout, then these two things are mutually exclusive so we throw the warning because we think trying to use both was a mistake. If you are seeing the warning because you calledtight_layouttwice then that was a mistake in Matplotlib and has been fixed ready for the next release (#26300).barnakissdr commentedon Aug 16, 2023
rcomer commentedon Aug 16, 2023
OK great, are you happy to close this issue then? With version 3.8, you should be able to call
tight_layoutas many times as you want and the warning should not appear. The release candidate is out on PyPI if you want to try it out.https://pypi.org/project/matplotlib/3.8.0rc1/
barnakissdr commentedon Aug 16, 2023