-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add PEP8-compliant aliases to transAxes, transData, etc. #11051
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
Should we call them something like |
Would be fine with that too. |
+1 for naming In the conflict between backward compatibility and "There should be one-- and preferably only one --obvious way to do it." I propose the following:
Not everything (in particular not 3, 4) has to be part of this PR, but we should discuss the further strategy here before merging this PR. |
ax.transAxes / transData / etc. are perhaps one of the most user-facing parts of mpl that are not pep8 compliant. Provide some PEP8-compliant aliases for those (like myself) who are excessively (and unduly?) bothered by that. Note that (quite unusually for myself :-)) I am **not** proposing to deprecate the camelCase names.
Renamed accordingly. |
Can do with 3-5. Still, I would like to have at least 2. in this PR. Changing that later would basically revert this PR. |
I actually think 2 & 3 should be done together (unless you can show that there's no performance issue, given how much we access these internally). |
Ok, for 2-3 I'd basically have to create a competing PR. But we should discuss and agree if we want 1-6 before starting further work. |
I am +1 on 1-5 (feel free to open your own PR) and +0 on 6. |
I'm far from convinced that this renaming is a good idea--that its advantages (ability to avoid camelCase) outweighs its disadvantages (more code, more explanations required, two names for exactly the same thing). |
Moving to 3.1 as this will need more consideration. |
Did we still want to try and discuss for 3.1? |
Moving further to 3.2 because this still needs some consideration and I don't see a dire need to rush this. Feel free to re-milestone. |
General agreement during call was to close this, but @timhoffm gets to reopen this if he wants :) |
Let's keep this closed for now. There are enough other battles to fight. However, I reserve the right to revisit. 😄 |
ax.transAxes / transData / etc. are perhaps one of the most user-facing
parts of mpl that are not pep8 compliant. Provide some PEP8-compliant
aliases for those (like myself) who are excessively (and unduly?)
bothered by that.
Note that (quite unusually for myself :-)) I am not proposing to
deprecate the camelCase names.
PR Summary
PR Checklist