Re: [ROOT] Log scale

From: cstrato (cstrato@aon.at)
Date: Wed Nov 27 2002 - 20:00:40 MET


Dear Rene

Since I am just writing my own methods to draw graphs, hists,
e.g. MyClass::DrawGraph(Int_t n, Double_t *X, const char *logbase)
where logbase can be: "0", "ln", "log2", "log10"
I have currently to convert array X to log values myself.
Is there a simple way to force the axes to display values as log
scale (when I supply the  min and max vlaues for the axes)?

Thank you
Christian
_._._._._._._._._._._._._._._._
C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a
V.i.e.n.n.a       A.u.s.t.r.i.a
_._._._._._._._._._._._._._._._



Rene Brun wrote:

> Hi Tuan,
> 
> You do not draw a TH1 in log scale, but rather draw a TH1
> in a pad for which you have selected the log scale (in x or/and y).
> See TPad::SetLogy
> or do it interactively with the mouse by clicking in the pad area
> with the right mouse button and select the SetLogy item.
> 
> Rene Brun
> 
> 
> On Tue, 26 Nov 2002, Vu Anh Tuan wrote:
> 
> 
>>A stupid question: how can we draw a TH1F histogram in log scale?
>>
>>Thanks,
>>
>>Tuan
>>k
>>
>>
> 
> 
> 



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