Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix label_outer in the presence of colorbars.#30098

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 1 commit intomatplotlib:mainfromanntzer:locb
Jun 30, 2025

Conversation

anntzer
Copy link
Contributor

The subgridspec to be considered should be the one containing both the axes and the colorbar, not the sub-subgridspec of just the axes.

Closes#27305 (using#27305 (comment) and a test).

PR summary

PR checklist

@anntzeranntzer added topic: geometry managerLayoutEngine, Constrained layout, Tight layout topic: color/colorbar labelsMay 23, 2025
@github-actionsgithub-actionsbot added topic: axes and removed topic: geometry managerLayoutEngine, Constrained layout, Tight layout labelsMay 23, 2025
f, axs = plt.subplots(2, 2, sharex=True, sharey=True)
@pytest.mark.parametrize('with_colorbar', [True, False])
def test_label_outer(remove_ticks, with_colorbar):
fig, axs = plt.subplots(2, 2, sharex=True, sharey=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can this get tested with layout=constrained as well?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

done (but the flagging above with _is_colorbar_gridspec still needs to be done).

The subgridspec to be considered should be the one containing both theaxes and the colorbar, not the sub-subgridspec of just the axes.
Copy link
Member

@QuLogicQuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Seems reasonable to me.

@timhoffmtimhoffm added this to thev3.10.4 milestoneJun 30, 2025
@timhoffmtimhoffm merged commitd797ee5 intomatplotlib:mainJun 30, 2025
40 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestJun 30, 2025
@anntzeranntzer deleted the locb branchJune 30, 2025 11:40
oscargus pushed a commit that referenced this pull requestJun 30, 2025
…0228)Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak left review comments

@QuLogicQuLogicQuLogic approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.10.4
Development

Successfully merging this pull request may close these issues.

[Bug]: Axes.label_outer() does not work when there is a colorbar
4 participants
@anntzer@QuLogic@jklymak@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp