Skip to content

tight_layout() compatibility - #6

Merged
dschwoerer merged 2 commits into
mainfrom
tight_layout
Aug 7, 2022
Merged

tight_layout() compatibility#6
dschwoerer merged 2 commits into
mainfrom
tight_layout

Conversation

@dschwoerer

Copy link
Copy Markdown
Collaborator

Makes control placement compatible with tight_layout() method or
constrained_layout option. Falls back on previous absolute placement
method if the gridspec version fails for any reason.
Previously was getting gridspec from current axes. This could result in
getting only a subplot, not the top gridspec from the figure. Workaround
depends on interal _gridspecs member of Figure, which is not ideal but
support for editing existing gridspecs in matplotlib is non-existant.
@dschwoerer
dschwoerer merged commit ffd11cb into main Aug 7, 2022
@dschwoerer
dschwoerer deleted the tight_layout branch August 7, 2022 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants