Custom vertical error bars histogram

Hi Rooters,

I have a quick question. I read the TH1* class reference page back and forth, and I couldnt find a way to produce a histogram with custom error bars. Meaning that I want to asign to each bin in the histogram an error set by myself (in an array or similar). The idea roughly looks like (note this is a bar chart rather than a histogram):
image

I did find something for a TGraph and then have error bars for the data points, but nothing for the histogram itself. Does there exist such an option/function in root?

Hope you can help,
Stijn

See the SetBinError() method from the TH1 class.

1 Like

I should have read it back and forth while paying attention… thanks anyway!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.