-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: Update description of properties of Line2D in 'plot' documentation. #14741
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
Line2D properties on plot documentation had only mentioned property value to be float and had not given any info on unit used. Added info on unit used for properties is points. closes #14720
Note this does not close #14720 which is for the kwarg list that gets repeated in other methods that use Line2d |
I see. My bad. Can you help me understand where I would have to make changes so I can fix it for other methods that use Line2D |
See lines.py l.1528 and the methods used therein for the docstring generation mechanism.
|
@timhoffm I looked into https://github.com/matplotlib/matplotlib/blob/master/doc/devel/documenting_mpl.rst#keyword-arguments . And by the given code example there, it looks like any changes made in the docstrings of Line2D will get reflected in all the methods use Line2D due to underlying function |
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.
Looks 👍 to me, thanks for the PR
@dstansby Thank you! Looking forward to more contributions to this organization. 😃 |
Thanks, and congratulations on your first contribution to Matplotlib! Hope to see you back sometime. 😄 |
@meeseeksdev backport to v3.1.x |
…f Line2D in 'plot' documentation.
…741-on-v3.1.x Backport PR #14741 on branch v3.1.x (DOC: Update description of properties of Line2D in 'plot' documentation.)
Line2D properties on plot documentation had only mentioned property value to be float and had not given any info on unit used.
Added info on unit used for properties is points.
closes #14720
PR Summary
PR Checklist