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:20:03 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET