Re: Problem with Time Display in TGraph

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 3 May 2006 21:56:16 +0200 (MEST)


Hi Joel,

I can reproduce the problem on Windows. It is ok on Linux and macosx. We will investigate the cause (seems to be connected with summer time) and we will let you know.

Thanks for reporting the problem.

Rene Brun

On
Wed, 3 May 2006, Flanders, Joel M. (JSC-SF2)[LM] wrote:

> I am running ROOT version 5.11 on a PC with Windows XP. I have run the
> following macro.
>
> TDatime td(2006,5,2,0,0,0);
> TGraph *gr = new TGraph();
> gr->SetPoint(0,0,0);
> gr->SetPoint(1,60,1);
> gr->GetHistogram()->GetXaxis()->SetTimeOffset(td->Convert(0));
> gr->GetHistogram()->GetXaxis()->SetTimeDisplay(1);
> gr->GetXaxis()->SetLabelSize(0.02);
> gr->GetXaxis()->SetTimeFormat("%Y\/%m\/%d %H\:%M\:%S");
> gr->Draw("ALP");
>
> I expected the first point to be 5/2/2006 0:00:00, but when the canvas
> was displayed it showed the first point to be 5/2/2006 01:00:00. Am I
> doing something wrong?
>
> Thanks,
> Joel Flanders
>
Received on Wed May 03 2006 - 21:56:22 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET