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

Skip to content

Commit a57772a

Browse files
committed
DOC : update bar docstring to numpy doc format
1 parent 96d2376 commit a57772a

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,54 +1819,63 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs):
18191819
height : sequence of scalars
18201820
the heights of the bars
18211821
1822-
width : scalar or array-like, optional, default: 0.8
1822+
width : scalar or array-like, optional
18231823
the width(s) of the bars
1824+
default: 0.8
18241825
1825-
bottom : scalar or array-like, optional, default: None
1826+
bottom : scalar or array-like, optional
18261827
the y coordinate(s) of the bars
1828+
default: None
18271829
18281830
color : scalar or array-like, optional
18291831
the colors of the bar faces
18301832
18311833
edgecolor : scalar or array-like, optional
18321834
the colors of the bar edges
18331835
1834-
linewidth : scalar or array-like, optional, default: None
1836+
linewidth : scalar or array-like, optional
18351837
width of bar edge(s). If None, use default
18361838
linewidth; If 0, don't draw edges.
1839+
default: None
18371840
1838-
xerr : scalar or array-like, optional, default: None
1841+
xerr : scalar or array-like, optional
18391842
if not None, will be used to generate errorbar(s) on the bar chart
1843+
default: None
18401844
1841-
yerr : scalar or array-like, optional, default: None
1845+
yerr : scalar or array-like, optional
18421846
if not None, will be used to generate errorbar(s) on the bar chart
1847+
default: None
18431848
1844-
ecolor : scalar or array-like, optional, default: None
1849+
ecolor : scalar or array-like, optional
18451850
specifies the color of errorbar(s)
1851+
default: None
18461852
1847-
capsize : integer, optional, default: 3
1853+
capsize : integer, optional
18481854
determines the length in points of the error bar caps
1855+
default: 3
18491856
1850-
error_kw :
1857+
error_kw : dict, optional
18511858
dictionary of kwargs to be passed to errorbar method. *ecolor* and
18521859
*capsize* may be specified here rather than as independent kwargs.
18531860
1854-
align : ['edge' | 'center'], optional, default: 'edge'
1855-
If `edge`, aligns bars by their left edges (for vertical bars) and
1856-
by their bottom edges (for horizontal bars). If `center`, interpret
1861+
align : {'edge', 'center'}, optional
1862+
If 'edge', aligns bars by their left edges (for vertical bars) and
1863+
by their bottom edges (for horizontal bars). If 'center', interpret
18571864
the `left` argument as the coordinates of the centers of the bars.
18581865
To align on the align bars on the right edge pass a negative
18591866
`width`.
18601867
1861-
orientation : 'vertical' | 'horizontal', optional, default: 'vertical'
1868+
orientation : {'vertical', 'horizontal'}, optional
18621869
The orientation of the bars.
18631870
1864-
log : boolean, optional, default: False
1865-
If true, sets the axis to be log scale
1871+
log : boolean, optional
1872+
If true, sets the axis to be log scale.
1873+
default: False
18661874
18671875
Returns
18681876
-------
1869-
`matplotlib.patches.Rectangle` instances.
1877+
bars : matplotlib.container.BarContainer
1878+
Container with all of the bars + errorbars
18701879
18711880
Notes
18721881
-----

0 commit comments

Comments
 (0)