Skip to content
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

Improve docs of markers #17545

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jun 1, 2020

PR Summary

lib/matplotlib/markers.py Outdated Show resolved Hide resolved
Comment on lines +325 to +330
Return the transform to be applied to the `.Path` from
`MarkerStyle.get_path()`.
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't pydocstyle be complaining that the first line should only be one line, or do we have that turned off?

Copy link
Member Author

Choose a reason for hiding this comment

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

That would be

D400 - First line should end with a period

We have currently deactivated that in .flake8 because we have a couple of docstrings that can't reasonably be cramped into 79 chars.

While it's good to keep the summary sentence short, personally, I don't see the point in stripping relevant information from the summary only to adhere to that limit. If you have an idea how to shorten the sentence meaningfully to a single line, that'd of course be welcome.

Copy link
Member

Choose a reason for hiding this comment

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

Not sure about the transform ones, but the get_alt_path one could be written like get_path.

Copy link
Member Author

@timhoffm timhoffm Jun 7, 2020

Choose a reason for hiding this comment

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

get_alt_path updated. I have no good idea for wording of the transforms, so I'd leave them pointing to the paths.

@timhoffm timhoffm force-pushed the doc-markerstyle branch 2 times, most recently from bb0224a to 3f4ca2e Compare June 5, 2020 22:21
lib/matplotlib/markers.py Outdated Show resolved Hide resolved
@QuLogic QuLogic merged commit 8b9f61d into matplotlib:master Jun 9, 2020
@QuLogic QuLogic added this to the v3.3.0 milestone Jun 9, 2020
@timhoffm timhoffm deleted the doc-markerstyle branch June 9, 2020 06:50
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.

2 participants