@@ -3752,13 +3752,13 @@ def pie(self, x, explode=None, labels=None,
37523752
37533753
37543754 def errorbar (self , x , y , yerr = None , xerr = None ,
3755- fmt = '-' , ecolor = None , capsize = 3 ,
3755+ fmt = '-' , ecolor = None , elinewidth = None , capsize = 3 ,
37563756 barsabove = False , lolims = False , uplims = False ,
37573757 xlolims = False , xuplims = False , ** kwargs ):
37583758 """
37593759 ERRORBAR(x, y, yerr=None, xerr=None,
3760- fmt='b-', ecolor=None, capsize=3, barsabove=False,
3761- lolims=False, uplims=False,
3760+ fmt='b-', ecolor=None, elinewidth=None, capsize=3,
3761+ barsabove=False, lolims=False, uplims=False,
37623762 xlolims=False, xuplims=False)
37633763
37643764 Plot x versus y with error deltas in yerr and xerr.
@@ -3783,6 +3783,9 @@ def errorbar(self, x, y, yerr=None, xerr=None,
37833783 ecolor is a matplotlib color arg which gives the color the
37843784 errorbar lines; if None, use the marker color.
37853785
3786+ elinewidth is the linewidth of the errorbar lines;
3787+ if None, use the linewidth.
3788+
37863789 capsize is the size of the error bar caps in points
37873790
37883791 barsabove, if True, will plot the errorbars above the plot symbols
@@ -3842,10 +3845,13 @@ def errorbar(self, x, y, yerr=None, xerr=None,
38423845 caplines = []
38433846
38443847 lines_kw = {'label' :'_nolegend_' }
3845- if 'linewidth' in kwargs :
3846- lines_kw ['linewidth' ]= kwargs ['linewidth' ]
3847- if 'lw' in kwargs :
3848- lines_kw ['lw' ]= kwargs ['lw' ]
3848+ if elinewidth :
3849+ lines_kw ['linewidth' ] = elinewidth
3850+ else :
3851+ if 'linewidth' in kwargs :
3852+ lines_kw ['linewidth' ]= kwargs ['linewidth' ]
3853+ if 'lw' in kwargs :
3854+ lines_kw ['lw' ]= kwargs ['lw' ]
38493855 if 'transform' in kwargs :
38503856 lines_kw ['transform' ] = kwargs ['transform' ]
38513857
@@ -5432,8 +5438,7 @@ def hist(self, x, bins=10, normed=False, cumulative=False,
54325438 If normed is true, the first element of the return tuple will
54335439 be the counts normalized to form a probability density, ie,
54345440 n/(len(x)*dbin). In a probability density, the integral of
5435- the histogram should be one (we assume equally spaced bins);
5436- you can verify that with
5441+ the histogram should be one; you can verify that with
54375442
54385443 # trapezoidal integration of the probability density function
54395444 pdf, bins, patches = ax.hist(...)
0 commit comments