Re: [ROOT] SetContour

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri May 09 2003 - 11:15:03 MEST


Hi Caius,

Olivier Couet has made several improvememts in contour plots
in the most recent versions of Root. Could you try 3.05/05 and let us know?
Send a script and a Root file to show your problem.

Rene Brun

Caius Howcroft wrote:
> 
> Hi, I have been using root  3.04/02 and am having problems with
> TH2F::SetContour.
> 
> I want one contour on my plot(LnL) at z=2.3 so I do:
> root [25] Double_t ilevel[1]={2.3}
> root [26] LnL->SetContour(1, ilevel)
> root [31] LnL->GetContour(ilevel)
> (Int_t)1
> root [32] ilevel[0]
> (Double_t)2.29999999999999982e+00
> root [33] LnL->Draw("cont0")
> //// This produces an empty plot.
> ///also
> root [37] LnL->GetContour(ilevel)
> (Int_t)1
> root [38] ilevel[0]
> (Double_t)0.00000000000000000e+00
> 
> Drawing seems to reset the contonur levels
> 
> I also tried using several different contour levels:
> Double_t ilevel[3]={0.0, 2.3, 5.0}
> root [26] LnL->SetContour(3, ilevel)
> 
> I draws 3 contours at what looks like equally spaced z values.
> 
> Cheers
> Caius
> 
> ________________________________________
> -           CAIUS HOWCROFT             -
> -  +44 (0)1223 764 128      UK(office) -
> ========================================



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET