{ auto c1 = new TCanvas("c1","Examples of TGaxis",10,10,700,100); c1->Range(-10,-1,10,1); TGaxis *axis = new TGaxis(-8,0.,8,0.,-100000,150000,2405,"tS"); axis->SetLabelSize(0.2); axis->SetTickSize(0.2); TDatime da(2003,02,28,12,00,00); axis->SetTimeOffset(da.Convert()); axis->SetLabelOffset(0.15); axis->SetTimeFormat("#splitline{%Y}{%d/%m}"); axis->Draw(); return c1; }