-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Cleanup GridHelperCurveLinear/GridFinder. #25729
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
Internal helper for `.GridHelperCurveLinear`, with the same constructor parameters; | ||
should not be directly instantiated. | ||
""" | ||
|
||
def __init__(self, | ||
transform, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modify this to aux_trans
for consistency (as this is the internal one, probably makes more sense to modify it here)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really want to bother going through a separate deprecation of the parameter name if we're going to fully inline GridFinder anyways. Plus, aux_trans is a pretty awkward name, if anything I actually prefer transform.
extreme_finder | ||
|
||
grid_locator1, grid_locator2 | ||
Grid locators for each axis. | ||
|
||
tick_formatter1, tick_formatter2 | ||
Tick formatters for each axis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extreme_finder | |
grid_locator1, grid_locator2 | |
Grid locators for each axis. | |
tick_formatter1, tick_formatter2 | |
Tick formatters for each axis. | |
extreme_finder : optional | |
grid_locator1, grid_locator2 : Locator, optional | |
Grid locators for each axis. | |
tick_formatter1, tick_formatter2 : Formatter, optional | |
Tick formatters for each axis. |
Not sure which class extreme_finder is. Bonus for proper links...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're not really locators and formatters though (but rather axisartist's variants on them).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea and a step in the right direction. Some comments for a slightly longer step.
- GridHelperCurveLinear: numpydocify; remove unused _aux_trans attribute. - GridFinder: This class is used nowhere else but as attribute on GridHelperCurveLinear and could probably be inlined into it; for now, remove the duplicated constructor docstring.
PR Summary
PR Checklist
Documentation and Tests
pytest
passes)Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst