Re: [ROOT] gStyle->SetTimeOffset

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Thu Sep 04 2003 - 09:02:53 MEST


Hi Dariusz,

 Only "time offset = 0" generated problems. Time offsets non equal to zero 
are treated as before.

 Cheers,        Olivier

On Wed, 3 Sep 2003, Dariusz Miskowiec wrote:

> Hi Olivier,
> 
> Yes, this is what I expect. I hope it works not only for
> the time offset exactly equal to 0, but also 57, for example.
> Am I right?
> 
> Thanks and best regards
> Dariusz Miskowiec
> 
> Olivier Couet wrote:
> >  Hi Dariusz,
> > 
> >  I put in attachment the PS file produced with your macro with the new fix 
> > I just did in order to handle correctly a time offset equal to 0. Let me 
> > know if it is what you except seems to me it is correct.
> > 
> >  Cheers,          Olivier
> > 
> > 
> > On Thu, 21 Aug 2003, Dariusz Miskowiec wrote:
> > 
> > 
> >>Dear Rooters,
> >>
> >>It seems that
> >>
> >>gStyle->SetTimeOffset(0);
> >>hi=new TH1F("nic","nic",10,0,1e8);
> >>hi->GetXaxis()->SetTimeDisplay(1);
> >>hi->GetXaxis()->SetTimeFormat("%y:%m:%d");
> >>hi->Draw();
> >>
> >>produces very different numbers on the horizontal axis when
> >>ran with root 3.03/07 and 3.05/05 on CERN lxplus. The newer
> >>root version gives a wrong result.
> >>
> >>Best regards
> >>Dariusz Miskowiec
> >>
> >>
> > 
> > 
> 
> 
> 

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



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