Re: [ROOT] log/log 2dim.histogram

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Oct 10 2000 - 09:01:06 MEST


See small script below:
Only options "box", "col", "scat" are supported for loglog scales.
See also $ROOTSYS/tutorials/zdemo.C

Rene Brun


void loglog()
{
   TCanvas *c1 = new TCanvas("c1");
   c1->SetLogx();
   c1->SetLogy();
   TH2F *h2 = new TH2F("h2","test log log",40,1,101,40,1,1001);
   for (Int_t i=0;i<100000;i++) {
      h2->Fill(gRandom->Landau(5,2),gRandom->Landau(5,10));
   }
   h2->Draw("box");
}


Jan Malinowski wrote:
> 
> Hi Rooters,
> I don't have much experience in warking with Root.
> I want to draw 2-dimensional histogram in log/log scale.
> When I do it for 1-dimensional histogram - there are no problems.
> I ask for sample program or an address with examples.
> My regards,
>     Jan Malinowski.



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