How to make horizontal histogram and superimposed horizontal fit without "hbar" option ?

From: liang <zhijun.liang_at_cern.ch>
Date: Thu, 8 Oct 2009 20:15:42 +0200


Dear ROOT experts :
I am trying to make plot with horizontal histogram and superimposed horizontal fit , Do you have any idea about how to do it ? We don't want to use "hbar" option , just want a simple horizontal histogram without any filled color , and superimposed a Gaussian fit horizontally .
What I want is just some thing like the plot made the following simple function , but put histogram and Gaussian fit horizontally . Is that possible to do ? Do you have any Any suggestion ? Many Thanks

void makeplot(){
TH1F *h1=new TH1F("h1","h1",100,-3,3);

h1->FillRandom("gaus",10000);
h1->Draw("");
h1->Fit("gaus");

}

Best regards
Zhijun Received on Thu Oct 08 2009 - 20:37:32 CEST

This archive was generated by hypermail 2.2.0 : Sat Oct 10 2009 - 17:50:02 CEST