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

Appearance settings

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions 14 lib/matplotlib/cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,18 @@
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): return self._grouper.joined(a, b)
def get_siblings(self, a): return self._grouper.get_siblings(a)

def joined(self, a, b):
star1327p marked this conversation as resolved.
Show resolved Hide resolved
"""
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 resolved Hide resolved
"""
Return all of the items joined with *a*, including itself.
"""
return self._grouper.get_siblings(a)

Check warning on line 894 in lib/matplotlib/cbook.py

View check run for this annotation

Codecov / codecov/patch

lib/matplotlib/cbook.py#L894

Added line #L894 was not covered by tests


def simple_linear_interpolation(a, steps):
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.