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

Skip to content

Docstring updates for Axes.fill and Axes.pie #10150

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 5, 2018

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jan 3, 2018

PR Summary

As part of #10148: Docstring updates for Axes.fill and Axes.pie.

@timhoffm timhoffm force-pushed the axes-plotting-docstrings branch from dec3b9a to 9c2a3f6 Compare January 3, 2018 20:42
@timhoffm
Copy link
Member Author

timhoffm commented Jan 3, 2018

Ok, I've rewrapped the paragraphs.

Each polygon is defined by the lists of *x* and *y* positions of
its nodes, optionally followed by by a *color* specifier. See
:mod:`matplotlib.colors` for supported color specifiers. The
standard color cycle is used for polygons without a color
Copy link
Member

Choose a reason for hiding this comment

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

iirc this is the same cycle, but a different cycler instance than the one used by plot. Not sure if that is a detail worth including here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is this important and intentional? Do we want to guarantee this as part of the API?

If not, I would consider it an implementation detail and not document it.


Parameters
----------
x : array-like
The input array used to make the pie chart.
The data defining the wedge sizes.
Copy link
Contributor

Choose a reason for hiding this comment

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

"The wedge sizes." seems enough :)

@@ -2581,8 +2582,8 @@ def pie(self, x, explode=None, labels=None, colors=None,
Dict of arguments to pass to the text objects.
Copy link
Contributor

Choose a reason for hiding this comment

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

just above (in wedgeprops): missing space before double backquote

@timhoffm timhoffm force-pushed the axes-plotting-docstrings branch from 9c2a3f6 to 4ac0dd1 Compare January 4, 2018 13:59
@dstansby dstansby added this to the v2.1.2 milestone Jan 4, 2018
@jklymak jklymak merged commit f4d845b into matplotlib:master Jan 5, 2018
jklymak added a commit that referenced this pull request Jan 5, 2018
@timhoffm timhoffm deleted the axes-plotting-docstrings branch January 6, 2018 00:04
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