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

Already on GitHub?Sign in to your account

Merged

Conversation

joe-saronic
Copy link

@joe-saronicjoe-saronic commentedJun 11, 2024
edited
Loading

PR summary

Makesmtrans.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-saronicjoe-saronicforce-pushed thefix-affine-delta-transform branch 4 times, most recently fromfad4ead to58379e3CompareJune 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

@anntzeranntzerJul 22, 2024
edited
Loading

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

@anntzeranntzer 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-saronicjoe-saronicforce-pushed thefix-affine-delta-transform branch from58379e3 to0b91d8eCompareJuly 24, 2024 22:31
@QuLogicQuLogic merged commit3a0bc88 intomatplotlib:mainAug 31, 2024
36 of 37 checks passed
@QuLogicQuLogic added this to thev3.10.0 milestoneAug 31, 2024
@joe-saronicjoe-saronic deleted the fix-affine-delta-transform branchAugust 31, 2024 18:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@anntzeranntzeranntzer approved these changes

Assignees
No one assigned
Projects
Status: Waiting for author
Milestone
v3.10.0
Development

Successfully merging this pull request may close these issues.

[Bug]: AffineDeltaTransform does not appear to invalidate properly
4 participants
@joe-saronic@QuLogic@anntzer@madphysicist

[8]ページ先頭

©2009-2025 Movatter.jp