Re: [ROOT] TH2D object (w/ negative entries won't Draw() in 3.05/3

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Mar 14 2003 - 18:05:01 MET


Hi Ed,

Before drawing your plot, do
  pResidual->SetEntries(1);

Your histogram has 0 entries. When drawing TH2 in non-3D mode, we immediatly
return without looping on all the cell contents. This is an important
gain in time for applications using a 2-d histogram to set the frame.

Rene Brun

Ed Oltman wrote:
> 
> Hello,
>  I have recently converted a root based applicationfrom 3.03/9a to
> 3.05/4 on Win2K.  The output is a bunch of objects written to a
> root file.  One is a TH2D object containing fit residuals of both
> signs.  I used to be able to Draw("colz") it, but now I can't
> draw it any way except as lego plots.  I've included the TH2D object
> Please advise.  Thanks.
> 
> Ed Oltman
> 
>   --------------------------------------------------------------------------------
>                    Name: example.root
>    example.root    Type: unspecified type (application/octet-stream)
>                Encoding: base64



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