Re: [ROOT] Log scale

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Nov 26 2002 - 12:40:06 MET


Hi,

Replace c1.SetLogy(); by gPad->SetLogy();
In your case, you are setting the canvas in log scale, but not its subpad.
In a canvas, you have have subpads in lin scales, others in log scale.

Rene Brun

On Tue, 26 Nov 2002, Vu Anh Tuan wrote:

> Hi Rene,
> 
> Well I can try interactively as you said. I click on TCanvas::SetLogy
> option, it works. But in a macro with TCanvas I'm not really successful.
> 
> Here is a simple code. May you show modify it? :)
> 
> TCanvas c1;
> 
> c1.Divide(2,1);
> 
> c1.cd(1)
> c1.SetLogy();
> h1->Draw();
> 
> //likewise for c1.cd(2)
> 
> Thanks a lot,
> 
> Tuan
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET