@@ -3528,9 +3528,22 @@ def errorbar(self, x, y, yerr=None, xerr=None,
35283528 lower = y - yerr [0 ]
35293529 upper = y + yerr [1 ]
35303530
3531- barcols .append ( self .vlines (x , lower , upper , label = '_nolegend_' ) )
3532- caplines .extend ( self .plot (x , lower , '_' , ms = 2 * capsize , label = '_nolegend_' ) )
3533- caplines .extend ( self .plot (x , upper , '_' , ms = 2 * capsize , label = '_nolegend_' ) )
3531+ vlines_kw = {'label' :'_nolegend_' }
3532+ if 'linewidth' in kwargs :
3533+ vlines_kw ['linewidth' ]= kwargs ['linewidth' ]
3534+ if 'lw' in kwargs :
3535+ vlines_kw ['lw' ]= kwargs ['lw' ]
3536+ barcols .append ( self .vlines (x , lower , upper , ** vlines_kw ) )
3537+
3538+ plot_kw = {
3539+ 'ms' :2 * capsize ,
3540+ 'label' :'_nolegend_' }
3541+ if 'markeredgewidth' in kwargs :
3542+ plot_kw ['markeredgewidth' ]= kwargs ['markeredgewidth' ]
3543+ if 'mew' in kwargs :
3544+ plot_kw ['mew' ]= kwargs ['mew' ]
3545+ caplines .extend ( self .plot (x , lower , '_' , ** plot_kw ) )
3546+ caplines .extend ( self .plot (x , upper , '_' , ** plot_kw ) )
35343547
35353548 if not barsabove and fmt is not None :
35363549 l0 , = self .plot (x ,y ,fmt ,** kwargs )
0 commit comments