8000 DOC better docstring for hist2d by NelleV · Pull Request #8429 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC better docstring for hist2d #8429

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

Closed
wants to merge 1 commit into from
Closed

DOC better docstring for hist2d #8429

wants to merge 1 commit into from

Conversation

NelleV
Copy link
Member
@NelleV NelleV commented Apr 4, 2017

The docstring referenced a function that is hard to access to interactively. Changed the docstring to explicitely describe parameters.

@NelleV NelleV changed the title DOC better docstring for hist2d [MRG] DOC better docstring for hist2d Apr 5, 2017
@dstansby dstansby added this to the 2.0.1 (next bug fix release) milestone Apr 5, 2017
Copy link
Member
@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

Some small changes

@@ -6457,7 +6457,21 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,

Other parameters
----------------
kwargs : :meth:`pcolorfast` properties.
cmap : [None, Colormap, string], optional
Copy link
Member

Choose a reason for hiding this comment

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

Would it be okay to get rid of the square brackets? I don't think they're anywhere else (or at least haven't been in recent doc PRs)

Copy link
Member

Choose a reason for hiding this comment

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

luminance data to 0,1. If None, defaults to normalize()

vmin/vmax : [None | scalar]
vmin and vmax are used in conjunction with norm to normalize
Copy link
Member

Choose a reason for hiding this comment

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

vmin and vmax (they're keyword arguments)

luminance data.

alpha : ``0 <= scalar <= 1`` or *None*
the alpha blending value
Copy link
Member

Choose a reason for hiding this comment

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

Capitalise 'the'

@NelleV NelleV closed this Apr 5, 2017
@anntzer
Copy link
Contributor
anntzer commented Apr 5, 2017

I assume the closing is accidental? (Feel free to leave a note and reclose if it is not.)

@anntzer anntzer reopened this Apr 5, 2017
@NelleV
Copy link
Member Author
NelleV commented Apr 5, 2017

No. I am not spending more time on those documentation pull requests. It takes more time to go through the reviewing process than it is to make the actual pull request. It's a loss of both reviewer's time and contributor's time. I am not spending time on this.

@NelleV NelleV closed this Apr 5, 2017
@NelleV Ne 8000 lleV deleted the blah branch April 5, 2017 17:20
@anntzer
Copy link
Contributor
anntzer commented Apr 5, 2017

@NelleV If you think that we should have a policy of merging documentation PRs with less strict review, as long as they're an improvement, I think this should be brought up on the usual channels. FWIW I would probably be +0 on such a change, as doc PRs do not introduce backcompatibility issues and their review can indeed drag on forever.

@NelleV
Copy link
Member Author
NelleV commented Apr 6, 2017

Sure, but I don't have time to deal with this right now. I've got too much on my plate. The only reason I opened this PR is I had to look for this information and it took me 2 minutes and not 10sec like it should have.
The branch is still there if anyone wants to put time on that PR.

@QuLogic QuLogic changed the title [MRG] DOC better docstring for hist2d DOC better docstring for hist2d Apr 30, 2017
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
0