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

Skip to content

Remove apply_theta_transforms argument #30004

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented May 3, 2025

This removes the deprecation that was introduced in #24834.

@dstansby dstansby added this to the v3.11.0 milestone May 3, 2025
@dstansby dstansby marked this pull request as ready for review May 3, 2025 19:27
Comment on lines 218 to 220
return PolarAxes.PolarTransform(
self._axis, self._use_rmin,
apply_theta_transforms=self._apply_theta_transforms
)
Copy link
Member

Choose a reason for hiding this comment

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

Can shrink:

Suggested change
return PolarAxes.PolarTransform(
self._axis, self._use_rmin,
apply_theta_transforms=self._apply_theta_transforms
)
return PolarAxes.PolarTransform(self._axis, self._use_rmin)

Comment on lines +1556 to 1558
tr = PolarAxes.PolarTransform()
trans = tr + self.axes.transData
return trans
Copy link
Member

Choose a reason for hiding this comment

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

Maybe squash:

Suggested change
tr = PolarAxes.PolarTransform()
trans = tr + self.axes.transData
return trans
return PolarAxes.PolarTransform() + self.axes.transData

Comment on lines 85 to +86
tr = (Affine2D().scale(np.pi / 180., 1.) +
PolarAxes.PolarTransform(apply_theta_transforms=False))
PolarAxes.PolarTransform())
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tr = (Affine2D().scale(np.pi / 180., 1.) +
PolarAxes.PolarTransform(apply_theta_transforms=False))
PolarAxes.PolarTransform())
tr = Affine2D().scale(np.pi / 180, 1) + PolarAxes.PolarTransform()

Comment on lines 148 to +149
tr = (Affine2D().scale(np.pi / 180., 1.) +
PolarAxes.PolarTransform(apply_theta_transforms=False))
PolarAxes.PolarTransform())
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tr = (Affine2D().scale(np.pi / 180., 1.) +
PolarAxes.PolarTransform(apply_theta_transforms=False))
PolarAxes.PolarTransform())
tr = Affine2D().scale(np.pi / 180, 1) + PolarAxes.PolarTransform()

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.

2 participants