Re: [ROOT] gStyle->SetTimeOffset

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 21 2003 - 19:49:33 MEST


Hi Dariusz,

You should set the time offset with a statement like
  TDatime t;
  gStyle->SetTimeOffset(t.Convert());

see examples at : http://root.cern.ch/root/HowtoTimeAxis.html

Olivier Couet has made several improvements in the time axis
in the recent releases. see the above URL for more details.

Rene Brun

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
> 
> 



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