-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Conversation
dec3b9a
to
9c2a3f6
Compare
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
lib/matplotlib/axes/_axes.py
Outdated
|
||
Parameters | ||
---------- | ||
x : array-like | ||
The input array used to make the pie chart. | ||
The data defining the wedge sizes. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
9c2a3f6
to
4ac0dd1
Compare
Backport PR #10150 on branch v2.1.x
PR Summary
As part of #10148: Docstring updates for
Axes.fill
andAxes.pie
.