Skip to content

Convert streamplot to numpydoc #13078

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 2 commits into from
Jan 3, 2019
Merged

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented Jan 2, 2019

Does what it says on the tin. I'm happy to fix formatting, but I don't want to deal with the actual docstring content in this PR.

(min, max) to (0, 1). Only necessary when *color* is an array.
*arrowsize* : float
norm : :class:`~matplotlib.colors.Normalize`
Normalize object used to scale luminance data to 0, 1. If ``None``,
Copy link
Member

Choose a reason for hiding this comment

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

Personally, I'd go for *None* instead. But we don't have a common practice defined for these and both variants do currently occur in the code.

Copy link
Member Author

Choose a reason for hiding this comment

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

I use double ticks since None is technically a snippet of code. I thought stars were reserved for keyword arguments?

Copy link
Member

Choose a reason for hiding this comment

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

There is no universal standard but code format is fine. We might want to agree on one style but that's something for another issue.

@timhoffm timhoffm merged commit ed97211 into matplotlib:master Jan 3, 2019
@dstansby dstansby deleted the streamplot-doc branch January 3, 2019 20:49
@QuLogic QuLogic added this to the v3.1 milestone Jan 3, 2019
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.

4 participants