Re: Problem with Time Display in TGraph

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sat, 6 May 2006 16:09:25 +0200 (MEST)


Hi Joel,

Thanks to Bertrand Bellenot this problem is now fixed in ROOT CVS head. Thanks for your report.

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 Sat May 06 2006 - 16:09:32 MEST

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