Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug Fix] Fix reverse mapping for _translate_tick_params #29249

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

Merged
merged 2 commits into from
Dec 8, 2024

Conversation

kyracho
Copy link
Contributor

@kyracho kyracho commented Dec 7, 2024

PR summary

Hi. This fixes a bug in _translate_tick_params where some keys are not being mapped correctly with reverse=True and cls.axis_name = 'x'.

For example, both 'left' and 'bottom' are mapped to 'tick1On', making the reverse ambiguous.

Separated from #28968 because this is an independent bug.

PR checklist

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Thanks for splitting.

Note: Test failures are unrelated.

@QuLogic
Copy link
Member

QuLogic commented Dec 7, 2024

I thought we already had a PR for this; did it not get merged?

@rcomer
Copy link
Member

rcomer commented Dec 7, 2024

This fixes #27416, which does have two existing PRs but both seem to have stalled.

@rcomer rcomer linked an issue Dec 7, 2024 that may be closed by this pull request
@rcomer rcomer added this to the v3.10.0 milestone Dec 8, 2024
@rcomer rcomer merged commit 9af426b into matplotlib:main Dec 8, 2024
39 checks passed
@rcomer
Copy link
Member

rcomer commented Dec 8, 2024

Thanks @kyracho!

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 8, 2024
@kyracho kyracho deleted the kw_translation_bugfix branch December 8, 2024 09:20
rcomer added a commit that referenced this pull request Dec 8, 2024
…249-on-v3.10.x

Backport PR #29249 on branch v3.10.x ([Bug Fix] Fix reverse mapping for _translate_tick_params)
@timhoffm timhoffm mentioned this pull request Dec 9, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: get_tick_params on xaxis shows wrong keywords
4 participants