FIX: do not warn when calling tight_layout multiple times by tacaswell · Pull Request #26300 · matplotlib/matplotlib · GitHub
Skip to content

FIX: do not warn when calling tight_layout multiple times - #26300

Merged
jklymak merged 1 commit into
matplotlib:mainfrom
tacaswell:fix/multiple_tightlayout
Jul 13, 2023
Merged

jklymak merged 1 commit into
matplotlib:mainfrom
tacaswell:fix/multiple_tightlayout

Conversation

@tacaswell

Copy link
Copy Markdown
Member

PR summary

Closes #26290

I was between adding state to the PlaceHolder layout enigne and holding that state via a no-op sub-class. Ended up going for the second, but could see the case for the first.

PR checklist

@rcomer

rcomer commented Jul 13, 2023

Copy link
Copy Markdown
Member

@tacaswell

Copy link
Copy Markdown
Member Author

@tacaswell
tacaswell force-pushed the fix/multiple_tightlayout branch from 18e19b3 to f7574a4 Compare July 13, 2023 15:11
@jklymak
jklymak merged commit 6391678 into matplotlib:main Jul 13, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jul 13, 2023
@tacaswell
tacaswell deleted the fix/multiple_tightlayout branch July 13, 2023 20:08
@QuLogic QuLogic added the topic: geometry manager LayoutEngine, Constrained layout, Tight layout label Jul 13, 2023
tacaswell added a commit that referenced this pull request Jul 13, 2023
…300-on-v3.7.x

Backport PR #26300 on branch v3.7.x (FIX: do not warn when calling tight_layout multiple times)
wavebyrd pushed a commit to wavebyrd/matplotlib that referenced this pull request Mar 13, 2026
wavebyrd pushed a commit to wavebyrd/matplotlib that referenced this pull request Mar 13, 2026
…t-of-pr-26300-on-v3.7.x

Backport PR matplotlib#26300 on branch v3.7.x (FIX: do not warn when calling tight_layout multiple times)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: geometry manager LayoutEngine, Constrained layout, Tight layout

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: calling fig.tight_layout multiple times

4 participants