[ROOT] leap year problem with histogram class TH2F

From: Reinhard Sojka (reinhard@ripe.net)
Date: Fri Oct 26 2001 - 16:47:36 MEST


Hi Rooters,

there is a Problem with the labels on TH2F in  Version 3.01/06 (and older).
When set to display month and day, February 29 is missing in every leap year. 
The amount of displayed days seems to be ok.

{
TH2F *h2 = new TH2F("h2", "test", 1500, 951436800, 951955200, 400, -400, 400); 
//2000
//TH2F *h2 = new TH2F("h2", "test", 1500, 825292800, 825724800, 400, -400, 
400); //1996
h2->GetXaxis()->SetTimeDisplay(1);
h2->GetXaxis()->SetTimeFormat("%b %d");

h2->Draw();
}

Regards,
Reinhard



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET