Skip to content

Navigation Menu

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

Appearance settings

FIX: Made AffineDeltaTransform pass-through properly #28375

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 3 commits into from
Aug 31, 2024

Conversation

joe-saronic
Copy link

@joe-saronic joe-saronic commented Jun 11, 2024

PR summary

Makes mtrans.AffineDeltaTransform update correctly when axis bounds change. Change made by @anntzer

closes #28372

enables the proposed example in #28364 to work correctly

Testing

A combination of manual and unit tests.

Manually verified that the example above works as expected now:

Before:

image

After:

image

Unit test shows that the parent transform is invalidated when the child is now.

PR checklist

@joe-saronic joe-saronic force-pushed the fix-affine-delta-transform branch 4 times, most recently from fad4ead to 58379e3 Compare June 11, 2024 19:13
@joe-saronic
Copy link
Author

@anntzer Could you take a look at this please?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Before this change, transform sub-graphs with ``AffineDeltaTransform`` did not update correctly.
This PR ensures that changes to axis limits are passed through correctly to the underlying transform.
Copy link
Contributor

@anntzer anntzer Jul 22, 2024

Choose a reason for hiding this comment

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

Wording is not really optimal (considering that this will be part of a changelog). Also the reference to axes limits may be a bit too specific (AffineDeltaTransform does not refer to transData/transLimits in itself).

Also this isn't really an API change, but rather a bugfix (so it may belong more to the whatsnew folder?)

Copy link
Author

Choose a reason for hiding this comment

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

My lens on this was a bit hyper-specific. I am happy to go with any suggestion you may have on this.

Copy link
Member

Choose a reason for hiding this comment

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

At the very least, it's "when the child transform changes", not specifically axis limits (as that's only the case for the example in #28364.)

Copy link
Author

Choose a reason for hiding this comment

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

@QuLogic Thanks for the suggestion. Done.

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

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

Changelog could be improved, but I believe the fix is correct.

@joe-saronic joe-saronic force-pushed the fix-affine-delta-transform branch from 58379e3 to 0b91d8e Compare July 24, 2024 22:31
@QuLogic QuLogic merged commit 3a0bc88 into matplotlib:main Aug 31, 2024
36 of 37 checks passed
@QuLogic QuLogic added this to the v3.10.0 milestone Aug 31, 2024
@joe-saronic joe-saronic deleted the fix-affine-delta-transform branch August 31, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

[Bug]: AffineDeltaTransform does not appear to invalidate properly
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.