Hi, I would like some help here. I am trying to plot two histograms on the same pad and fit them both with two separate functions. When I say hist1->Draw(); hist2->Draw("same"); I get both the histograms in the same pad. Now I use a fit function fit1 for hist1 and fit2 for hist2. I say hist1->Fit("fit1","R"); fit1->Draw("same"); At this point, I lose the second histogram. I have only the first histogram with the fit. but instead of stopping here, I say hist2->Fit("fit2","R"); fit2->Draw("same"); Now I lose the first histogram but have only the second histogram with the fit. Can anyone tell me, how to get both the histograms with both the fits on the pad without losing either. Just for trying, I gave pad update after every drawing, but still doesn't work. Waiting for a reply, Thank you, Siva.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET