// From heads/v6-08-00-patches@v6-08-00-1-g4e18a53, Nov 07 2016, 16:50:45 void shortline() { TCanvas *c = new TCanvas("timeline","Timeline",1900,500); TH2I *coord = new TH2I("coord",";Time",100,0,1000000,2,0,2); coord->SetStats(kFALSE); coord->GetYaxis()->SetNdivisions(10); coord->Draw(); TLine *l1 = new TLine( 70285, 0.3, 110890, 0.3); TLine *l2 = new TLine(162074, 0.7, 353888, 0.7); TLine *l3 = new TLine(358982, 1.1, 409845, 1.1); TLine *l4 = new TLine(717686, 1.5, 717900, 1.5); // increase length 14->214 TLine *l5 = new TLine(976961, 1.9, 987766, 1.9); l1->SetLineWidth(30); l1->SetLineColor(kBlue); l2->SetLineWidth(30); l2->SetLineColor(kBlue); l3->SetLineWidth(30); l3->SetLineColor(kBlue); l4->SetLineWidth(30); l4->SetLineColor(kRed); l5->SetLineWidth(30); l5->SetLineColor(kBlue); l1->Draw(); l2->Draw(); l3->Draw(); l4->Draw(); l5->Draw(); c->SetCanvasSize(10000, 500); // zoom to maximum 10000 c->Update(); }