Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Small improvements to legend's docstring. #6618

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 1 commit into from
Sep 15, 2016

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jun 21, 2016

The source looks a bit weirder, but the output of pydoc pylab.legend
(or plt.legend? in IPython) is much nicer. I don't think numpydoc
allows splitting the argument type information into two lines.

The source looks a bit weirder, but the output of `pydoc pylab.legend`
(or `plt.legend?` in IPython) is much nicer.  I don't think numpydoc
allows splitting the argument type information into two lines.
@tacaswell tacaswell added this to the 2.1 (next point release) milestone Jun 21, 2016
@@ -372,8 +372,8 @@ def legend(self, *args, **kwargs):
The font properties of the legend. If None (default), the current
:data:`matplotlib.rcParams` will be used.

fontsize : int or float or {'xx-small', 'x-small', 'small', 'medium',\
Copy link
Member

Choose a reason for hiding this comment

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

This was before your patch, but why is there a backslash at the end of that line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That removes the newline from the string, and is necessary so that Sphinx interprets it correctly.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense. Thanks for the explanation!

Copy link
Member

@NelleV NelleV left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

@NelleV
Copy link
Member

NelleV commented Sep 15, 2016

I am going to ignore the coverage failure, considering this are only docstrings changes.

@NelleV NelleV merged commit 59c894c into matplotlib:master Sep 15, 2016
@anntzer anntzer deleted the legend-docstring branch September 15, 2016 18:23
@tacaswell tacaswell modified the milestones: 2.0.1 (next bug fix release), 2.1 (next point release) Sep 16, 2016
@tacaswell
Copy link
Member

backported to v2.x as f3ddb4e

tacaswell pushed a commit that referenced this pull request Sep 16, 2016
Small improvements to legend's docstring.
@QuLogic QuLogic modified the milestones: 2.0.1 (next bug fix release), 2.0 (style change major release) Dec 7, 2016
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.

5 participants