void Plot(){ TH1I *h = new TH1I("h", "h", 10, 1331683214, 1331683814); h->GetXaxis()->SetTimeDisplay(1); h->GetXaxis()->SetTimeFormat("#splitline{%y/%m/%d}{%H:%M:%S}%F1970-01-01 00:00:00"); h->GetXaxis()->SetLabelOffset(0.020); h->GetXaxis()->SetLabelSize(0.03); h->Draw(); } void Plot2(){ TH1I *h = new TH1I("h", "h", 10, 0, 600); h->GetXaxis()->SetTimeDisplay(1); h->GetXaxis()->SetTimeFormat("#splitline{%y/%m/%d}{%H:%M:%S}%F1970-01-01 00:00:00"); h->GetXaxis()->SetLabelOffset(0.020); h->GetXaxis()->SetLabelSize(0.03); h->Draw(); }