Re: [ROOT] 2D color plot

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 21 2000 - 16:36:55 MEST


Hi Greg,
For me, your simple example works correctly.
Do you have something special in your rootlogon.C file ?
Which version are you using ?

Rene Brun

Greg Veramendi wrote:
> 
> Hi all,
>         I can't seem to be able to make a thermal plot of a
> 2d histogram. Here is a simple example:
> 
> ghist = new TH2F("Gaussian","This is a gaussian",10,-10,10,10,-10,10);
> gRandom->SetSeed();
> for (Int_t i = 0; i < 1000; i++) {ghist->Fill(gRandom->Gaus(0,5),gRandom->Gaus(0,5),1);}
> gStyle->SetPalette(1);
> ghist->SetContour(28);
> ghist->Draw("colz");
> 
> I get a palette with 2 colors and a blank plot! Is this a bug or am I
> doing something wrong?
> 
> thanks,
> Greg Veramendi
> CDF online monitor framework



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