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

Skip to content

Fix CompositeGenericTransform.contains_branch_seperately #28486

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 1 commit into from
Jun 29, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jun 28, 2024

PR summary

Formerly, this fell back to the the super-class Transform implementation, which returned Transform.contains_branch for both dimensions. This doesn't make sense for blended transforms, which have their own implementation that checks each side. However, it also doesn't make sense for composite transforms, because those may contain blended transforms themselves, so add a specific implementation for it.

Also fix type inconsistency for Transform.contains_branch_seperately.

This does fix #28383, though since it has to reach into transform internals to do so might make one a bit wary.

PR checklist

Formerly, this fell back to the the super-class Transform
implementation, which returned `Transform.contains_branch` for both
dimensions. This doesn't make sense for blended transforms, which have
their own implementation that checks each side. However, it _also_
doesn't make sense for composite transforms, because those may contain
blended transforms themselves, so add a specific implementation for it.

Also fix type inconsistency for `Transform.contains_branch_seperately`.
@greglucas greglucas merged commit 00cbd9c into matplotlib:main Jun 29, 2024
47 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 29, 2024
ksunden added a commit that referenced this pull request Jul 1, 2024
…486-on-v3.9.x

Backport PR #28486 on branch v3.9.x (Fix CompositeGenericTransform.contains_branch_seperately)
@QuLogic QuLogic deleted the composite-contains branch July 2, 2024 22:27
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]: axvspan no longer participating in limit calculations
3 participants