-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Simplify SecondaryAxis.set_color. #14593
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
Conversation
I'm +/-0 on this PR. On the one hand, this is shorter. On the other hand, it feels awkward to set properties of objects that are not used. I don't think, we should lift The color of an |
On the other hand, with the implementation here, it means that if someday someone comes up with e.g. a 3d version of secondary_axes, this implementation will directly work (cf a couple of other recent PRs by myself about mplot3d).
Then should we have |
Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it. |
The new version should be less controversial. |
Seems like this is not tested. Maybe add a test for good measure? (And someone not breaking it at a later stage.) |
sure, test added. |
The "orthogonal" axis is invisible, so we can just set the color of all
ticks, spines, and labels, regardless of orientation.
Note that the method is actually unused, untested, and could reasonably be lifted to the base class instead of only being provided for secondary axes, if we decide it's useful functionality (the new implementation doesn't use anything that's specific to secondary axes).
PR Summary
PR Checklist