Bar chart with errors


I would have a probably simple question. I want to draw a histogram with bar chart option. Is it possible to add error bars, drawing the full bar at the same time?

Thank you for the support

If you just want vertical bars, you can combined it with the error option

h.Draw("bar e");

This doesn’t work for horizontal bars though.

Yes, the problem is that if I have multiple bars in the same bin, the error bars are all drawn in the middle of the bin.

I’ve just found that this is an old issue…

Does anybody know if it has been solved in the meanwhile?

there is no way to draw the error bars horizontally.