Skip to content

FIX: Ensure Locators on RadialAxis are always correctly wrapped #30174

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

timhoffm
Copy link
Member

All the wrapping logic is now done whenever a new locator is set in RadialAxis.

Closes #30164 and rearchitects #29798.

All the wrapping logic is now contained in RadialAxis

Closes matplotlib#30164 and rearchitects matplotlib#29798.
RadialLocator(self.get_major_locator(), self.axes))
self.isDefault_majloc = is_default

def set_major_locator(self, locator):
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess you could inline the logic of _wrap_locator_formatter here (if not isinstance(locator, RadialLocator): locator = RadialLocator(locator, self.axes)) which would save you from having to mess with isdefault_majloc?

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]: Removing spines in polar plot causes distortion of the plot
2 participants