Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf94fce6

Browse files
DOC: Add docstrings to matplotlib.cbook.GrouperView (#29617)
* DOC: Add docstrings to matplotlib.cbook.GrouperView* DOC: Fixed linting errors in cbook.py* Update cbook.pyCo-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>* Update cbook.pyCo-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>* Revert unnecessary changes* Removed unnecessary whitespace---------Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parentc7e286e commitf94fce6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎lib/matplotlib/cbook.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,8 +880,18 @@ class GrouperView:
880880
def__init__(self,grouper):self._grouper=grouper
881881
def__contains__(self,item):returniteminself._grouper
882882
def__iter__(self):returniter(self._grouper)
883-
defjoined(self,a,b):returnself._grouper.joined(a,b)
884-
defget_siblings(self,a):returnself._grouper.get_siblings(a)
883+
884+
defjoined(self,a,b):
885+
"""
886+
Return whether *a* and *b* are members of the same set.
887+
"""
888+
returnself._grouper.joined(a,b)
889+
890+
defget_siblings(self,a):
891+
"""
892+
Return all of the items joined with *a*, including itself.
893+
"""
894+
returnself._grouper.get_siblings(a)
885895

886896

887897
defsimple_linear_interpolation(a,steps):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp