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
tight layout kwargs have no effect if rc autolayout setting is set (MPL 1.5.3) #7805
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
github-actions commentedon Apr 5, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
tacaswell commentedon Apr 5, 2023
This is still a bug. The source of this bug is definitely different than it was before (as we have radically re-done this code).
The issue is that:
Noneis passed tofig.set_layout_managerit falls back to doing what the rcparams sayI think the fix is to make the "unset layout manager" more robust.
tacaswell commentedon Apr 5, 2023
matplotlib/lib/matplotlib/figure.py
Lines 2573 to 2638 in 8ca75e4
and
matplotlib/lib/matplotlib/figure.py
Lines 3517 to 3518 in 8ca75e4
are the badly interacting bits of code.
I think we need a (private) flag to say "make it None, ignore rcparams" (or use rccontext in the
finally?).rcomer commentedon Apr 5, 2023
I haven’t followed this whole thread, but if we want to not have a layout engine we can pass
set_layout_engine("none").tacaswell commentedon Apr 5, 2023
Ah, then using
'none'is probably the right thing to do.FIX: correctly unset the layout engine in Figure.tight_layout
FIX: correctly unset the layout engine in Figure.tight_layout