Skip to content

Conversation

@jklymak
Copy link
Member

@jklymak jklymak commented Nov 25, 2021

PR Summary

Closes #21749

The subplotsepc logic was not correct for manually added colorbars so that tight_layout would raise instead of warn about the manual colorbar not being part of a layout.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@jklymak jklymak added topic: color/colorbar topic: geometry manager LayoutEngine, Constrained layout, Tight layout labels Nov 25, 2021
@jklymak jklymak added this to the v3.5.1 milestone Nov 25, 2021
@jklymak jklymak added the PR: bugfix Pull requests that fix identified bugs label Nov 26, 2021
@jklymak jklymak force-pushed the fix-manual-colorbar-tight branch from cd1135c to 98cd347 Compare November 26, 2021 20:58
@dstansby dstansby merged commit 25a54a4 into matplotlib:main Nov 28, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 28, 2021
dstansby added a commit that referenced this pull request Nov 28, 2021
…751-on-v3.5.x

Backport PR #21751 on branch v3.5.x (FIX: manual colorbars and tight layout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: bugfix Pull requests that fix identified bugs topic: color/colorbar topic: geometry manager LayoutEngine, Constrained layout, Tight layout

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Regression on tight_layout when manually adding axes for colorbars

3 participants