Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify GridSpec setup in make_axes_gridspec. #27306

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 11, 2023

Currently, make_axes_gridspec uses two nested gridspecs, first a horizontal (1, 2) gridspec and second a vertical (3, 1) gridspec to position an axes A and the associated left-colorbar C as

A.
AC
A.

(and similarly for colorbars on other sides of the main axes). Instead, this can be done with a single (3, 2) gridspec to position both A and C.

PR summary

PR checklist

Currently, make_axes_gridspec uses two nested gridspecs, first a
horizontal (1, 2) gridspec and second a vertical (3, 1) gridspec to
position an axes A and the associated left-colorbar C as
```
A.
AC
A.
```
(and similarly for colorbars on other sides of the main axes).  Instead,
this can be done with a single (3, 2) gridspec to position both A and C.
@anntzer anntzer added topic: geometry manager LayoutEngine, Constrained layout, Tight layout Maintenance labels Nov 11, 2023
@oscargus oscargus merged commit 2a840e4 into matplotlib:main Nov 15, 2023
43 checks passed
@anntzer anntzer deleted the mag branch November 15, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance topic: geometry manager LayoutEngine, Constrained layout, Tight layout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants