-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC/TST : document and test negative width to bar #4196
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1819,52 +1819,63 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs): | |
height : sequence of scalars | ||
the heights of the bars | ||
|
||
width : scalar or array-like, optional, default: 0.8 | ||
width : scalar or array-like, optional | ||
the width(s) of the bars | ||
default: 0.8 | ||
|
||
bottom : scalar or array-like, optional, default: None | ||
bottom : scalar or array-like, optional | ||
the y coordinate(s) of the bars | ||
default: None | ||
|
||
color : scalar or array-like, optional | ||
the colors of the bar faces | ||
|
||
edgecolor : scalar or array-like, optional | ||
the colors of the bar edges | ||
|
||
linewidth : scalar or array-like, optional, default: None | ||
linewidth : scalar or array-like, optional | ||
width of bar edge(s). If None, use default | ||
linewidth; If 0, don't draw edges. | ||
default: None | ||
|
||
xerr : scalar or array-like, optional, default: None | ||
xerr : scalar or array-like, optional | ||
if not None, will be used to generate errorbar(s) on the bar chart | ||
default: None | ||
|
||
yerr : scalar or array-like, optional, default: None | ||
yerr : scalar or array-like, optional | ||
if not None, will be used to generate errorbar(s) on the bar chart | ||
default: None | ||
|
||
ecolor : scalar or array-like, optional, default: None | ||
ecolor : scalar or array-like, optional | ||
specifies the color of errorbar(s) | ||
default: None | ||
|
||
capsize : integer, optional, default: 3 | ||
capsize : integer, optional | ||
determines the length in points of the error bar caps | ||
default: 3 | ||
|
||
error_kw : | ||
error_kw : dict, optional | ||
dictionary of kwargs to be passed to errorbar method. *ecolor* and | ||
*capsize* may be specified here rather than as independent kwargs. | ||
|
||
align : ['edge' | 'center'], optional, default: 'edge' | ||
If `edge`, aligns bars by their left edges (for vertical bars) and | ||
by their bottom edges (for horizontal bars). If `center`, interpret | ||
align : {'edge', 'center'}, optional | ||
If 'edge', aligns bars by their left edges (for vertical bars) and | ||
by their bottom edges (for horizontal bars). If 'center', interpret | ||
the `left` argument as the coordinates of the centers of the bars. | ||
To align on the align bars on the right edge pass a negative | ||
`width`. | ||
|
||
orientation : 'vertical' | 'horizontal', optional, default: 'vertical' | ||
orientation : {'vertical', 'horizontal'}, optional | ||
The orientation of the bars. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A clear indication of the default is critical; I wonder whether this can be handled by scrupulously adhering to a convention in which the first alternative is the default. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is the convention (first is default) specified in the numpydoc style On Sun, Apr 5, 2015, 14:50 Eric Firing [email protected] wrote:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for clarifying I'm 👍 on merging this now then but unfortunately needs a rebase |
||
|
||
log : boolean, optional, default: False | ||
If true, sets the axis to be log scale | ||
log : boolean, optional | ||
If true, sets the axis to be log scale. | ||
default: False | ||
|
||
Returns | ||
------- | ||
`matplotlib.patches.Rectangle` instances. | ||
bars : matplotlib.container.BarContainer | ||
Container with all of the bars + errorbars | ||
|
||
Notes | ||
----- | ||
|
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 it on purpose that default has dropped out here?