Histogram with error in each bin

Dear Root experts,

I am working with ROOT in python. I have an array with some numbers array_mean (mean values) and another array with the associated standard deviation array_std, and len(array_std)=len(array_mean).

How can I plot a histogram of array_mean and its associated array_std?

Thank you very much,

Either you want a TGraphErrors or you want the TH1::FillN(Int_t ntimes, const Double_t *x, const Double_t *weights, Int_t stride = 1) or the TH1::Fill(Double_t x, Double_t weight).

1 Like

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