[ROOT] fitting destroys graph attributes

From: Martin Weber (Martin.Weber@cern.ch)
Date: Thu Sep 14 2000 - 11:15:13 MEST


Dear all,

why is the order of fitting / drawing important in the example below? I
would expect the graphical output to be equivalent!

Martin

isbugorfeature()
{
  TCanvas * c1 = new TCanvas("c1", "c1", 600, 800);
  c1->Divide(1,2);
  TH1F * h1 = new TH1F("h1", "h1", 100, -3, 3);
  h1->FillRandom("gaus");
  
  c1->cd(1);
  h1->Fit("gaus");
  h1->Draw("ep");

  c1->cd(2);
  h1->Draw("ep");
  h1->Fit("gaus");
}



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET