Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5f12134

Browse filesBrowse files
committed
DOC : update bar docstring to numpy doc format
1 parent b291df2 commit 5f12134
Copy full SHA for 5f12134

File tree

Expand file treeCollapse file tree

1 file changed

+24
-15
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+24
-15
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+24-15Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,54 +1813,63 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs):
18131813
height : sequence of scalars
18141814
the heights of the bars
18151815
1816-
width : scalar or array-like, optional, default: 0.8
1816+
width : scalar or array-like, optional
18171817
the width(s) of the bars
1818+
default: 0.8
18181819
1819-
bottom : scalar or array-like, optional, default: None
1820+
bottom : scalar or array-like, optional
18201821
the y coordinate(s) of the bars
1822+
default: None
18211823
18221824
color : scalar or array-like, optional
18231825
the colors of the bar faces
18241826
18251827
edgecolor : scalar or array-like, optional
18261828
the colors of the bar edges
18271829
1828-
linewidth : scalar or array-like, optional, default: None
1830+
linewidth : scalar or array-like, optional
18291831
width of bar edge(s). If None, use default
18301832
linewidth; If 0, don't draw edges.
1833+
default: None
18311834
1832-
xerr : scalar or array-like, optional, default: None
1835+
xerr : scalar or array-like, optional
18331836
if not None, will be used to generate errorbar(s) on the bar chart
1837+
default: None
18341838
1835-
yerr : scalar or array-like, optional, default: None
1839+
yerr : scalar or array-like, optional
18361840
if not None, will be used to generate errorbar(s) on the bar chart
1841+
default: None
18371842
1838-
ecolor : scalar or array-like, optional, default: None
1843+
ecolor : scalar or array-like, optional
18391844
specifies the color of errorbar(s)
1845+
default: None
18401846
1841-
capsize : integer, optional, default: 3
1847+
capsize : integer, optional
18421848
determines the length in points of the error bar caps
1849+
default: 3
18431850
1844-
error_kw :
1851+
error_kw : dict, optional
18451852
dictionary of kwargs to be passed to errorbar method. *ecolor* and
18461853
*capsize* may be specified here rather than as independent kwargs.
18471854
1848-
align : ['edge' | 'center'], optional, default: 'edge'
1849-
If `edge`, aligns bars by their left edges (for vertical bars) and
1850-
by their bottom edges (for horizontal bars). If `center`, interpret
1855+
align : {'edge', 'center'}, optional
1856+
If 'edge', aligns bars by their left edges (for vertical bars) and
1857+
by their bottom edges (for horizontal bars). If 'center', interpret
18511858
the `left` argument as the coordinates of the centers of the bars.
18521859
To align on the align bars on the right edge pass a negative
18531860
`width`.
18541861
1855-
orientation : 'vertical' | 'horizontal', optional, default: 'vertical'
1862+
orientation : {'vertical', 'horizontal'}, optional
18561863
The orientation of the bars.
18571864
1858-
log : boolean, optional, default: False
1859-
If true, sets the axis to be log scale
1865+
log : boolean, optional
1866+
If true, sets the axis to be log scale.
1867+
default: False
18601868
18611869
Returns
18621870
-------
1863-
`matplotlib.patches.Rectangle` instances.
1871+
bars : matplotlib.container.BarContainer
1872+
Container with all of the bars + errorbars
18641873
18651874
Notes
18661875
-----

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.