Для обычного графика панд-бара достаточно указать capsize
. * Т.е. 1002 *
import matplotlib.pyplot as plt
import pandas as pd
s = pd.Series({'a':1,'b':2,'c':3,'d':4,'e':5})
err = [0.1,0.2,0.3,0.4,0.5]
plt.figure()
s.plot(kind='barh', xerr=err, capsize=3)
plt.show()

Однако в этом случае вы, похоже, используете стиль морского происхождения. Это изменяет capthickness. Так что нужно установить его либо через error_kw
,
бара
import matplotlib.pyplot as plt
import pandas as pd
plt.style.use('seaborn')
s = pd.Series({'a':1,'b':2,'c':3,'d':4,'e':5})
err = [0.1,0.2,0.3,0.4,0.5]
plt.figure()
s.plot(kind='barh', xerr=err, capsize=3, error_kw=dict(capthick=1))
plt.show()
или отменить изменение через rcParams,
import matplotlib.pyplot as plt
import pandas as pd
plt.style.use('seaborn')
plt.rcParams.update({"lines.markeredgewidth" : 1,
"errorbar.capsize" : 3})
s = pd.Series({'a':1,'b':2,'c':3,'d':4,'e':5})
err = [0.1,0.2,0.3,0.4,0.5]
plt.figure()
s.plot(kind='barh', xerr=err)
plt.show()
