Histogram plot

Hi everyone !
How We can Draw a gaussion for diffrent values of (mean x) in the same Histogram ?


Hello,

You can always draw functions on the same canvas with the "same" option.

auto g0 = TF1("gaus0","gaus",-10,10);
g0.SetParameters(2,2,2);
auto g1 = TF1("gaus0","gaus",-10,10);
g1.SetParameters(1,1,1);

g0.Draw()
g1.Draw("Same")

I hope this helps.

Best,
D