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

Conversation

star1327p
Copy link
Contributor

PR summary

Add docstrings to matplotlib.cbook.GrouperView

image

PR checklist

@QuLogic
Copy link
Member

QuLogic commented Feb 14, 2025

LGTM, but please fix the linting errors.

@timhoffm
Copy link
Member

The linting problem is that the original code was also not conforming (not sure why this is not flagged). It should be sufficient to introduce empty lines before the modified methods.

@star1327p
Copy link
Contributor Author

@QuLogic @timhoffm Thank you both for the comments! I have revised the linting parts, and hope this works!

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry if our comments have not been clear.

Comment on lines 853 to 855
"""
Return whether *a* and *b* are members of the same set.
"""
Copy link
Member

Choose a reason for hiding this comment

The 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 style https://matplotlib.org/devdocs/devel/document.html#quote-positions. Please revert.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timhoffm I manually changed it back in comment 08982e9

Comment on lines 859 to 861
"""
Remove *a* from the grouper, doing nothing if it is not there.
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timhoffm I manually changed it back in comment 08982e9

lib/matplotlib/cbook.py Show resolved Hide resolved
lib/matplotlib/cbook.py Show resolved Hide resolved
star1327p and others added 4 commits February 14, 2025 11:50
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
@timhoffm timhoffm added this to the v3.10.1 milestone Feb 14, 2025
@timhoffm timhoffm merged commit f94fce6 into matplotlib:main Feb 14, 2025
38 of 41 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Feb 14, 2025
@timhoffm
Copy link
Member

Thanks @star1327p and congratulations on your first contribution to Matplotlib! 🎉

timhoffm pushed a commit that referenced this pull request Feb 15, 2025
…ew (#29627)

Co-authored-by: Christine P. Chai <star1327p@gmail.com>
prafulgulani pushed a commit to prafulgulani/matplotlib that referenced this pull request Feb 22, 2025
* DOC: Add docstrings to matplotlib.cbook.GrouperView

* DOC: Fixed linting errors in cbook.py

* Update cbook.py

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>

* Update cbook.py

Co-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>
@ksunden ksunden mentioned this pull request Mar 3, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.