Skip to content

Arrow patch docstring clean #8770

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
Jul 28, 2017
Merged

Conversation

dstansby
Copy link
Member

Make mpatches.Arrow into a numpydoc docstring, and make it clear the units and size that the patch is drawn in.

Also gives a minor clean to artist_reference.py to stop some text leaking off the bottom of the plot.

@dstansby dstansby changed the title Arrowpatch docstring clean Arrow patch docstring clean Jun 17, 2017

@docstring.dedent_interpd
def __init__(self, x, y, dx, dy, width=1.0, **kwargs):
"""
Draws an arrow, starting at (*x*, *y*), direction and length
given by (*dx*, *dy*) the width of the arrow is scaled by *width*.
Draws an arrow from (*x*, *y*) to (*x* + *dx*, *y* + *dy*).
Copy link
Contributor

Choose a reason for hiding this comment

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

would do use double backquotes around each parenthesis instead.

@NelleV NelleV merged commit 1a835d9 into matplotlib:master Jul 28, 2017
@QuLogic QuLogic added this to the 2.1 (next point release) milestone Jul 28, 2017
@dstansby dstansby deleted the arrowpatch-docstring branch July 29, 2017 17:41
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