Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
DOC: Add docstrings to matplotlib.cbook.GrouperView#29617
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Changes from3 commits
09ffea8
6aedbe2
76dd8be
c951f1a
8d2b682
08982e9
eb7cae3
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -850,11 +850,15 @@ | ||
mapping[elem] = set_a | ||
def joined(self, a, b): | ||
""" | ||
Return whether *a* and *b* are members of the same set. | ||
""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This change is not necessary, in fact the original one conforms to our stylehttps://matplotlib.org/devdocs/devel/document.html#quote-positions. Please revert. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. | ||
return (self._mapping.get(a, object()) is self._mapping.get(b)) | ||
def remove(self, a): | ||
""" | ||
Remove *a* from the grouper, doing nothing if it is not there. | ||
""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. As above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. | ||
self._mapping.pop(a, {a}).remove(a) | ||
self._ordering.pop(a, None) | ||
@@ -880,8 +884,16 @@ | ||
def __init__(self, grouper): self._grouper = grouper | ||
def __contains__(self, item): return item in self._grouper | ||
def __iter__(self): return iter(self._grouper) | ||
def joined(self, a, b): | ||
star1327p marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
""" | ||
Return whether *a* and *b* are members of the same set. | ||
""" | ||
return self._grouper.joined(a, b) | ||
def get_siblings(self, a): | ||
star1327p marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
""" | ||
Return all of the items joined with *a*, including itself. | ||
""" | ||
return self._grouper.get_siblings(a) | ||
def simple_linear_interpolation(a, steps): | ||
Uh oh!
There was an error while loading.Please reload this page.