{ auto c = new TCanvas("c","c",200,10,500,300); const Int_t n = 50; auto g = new TGraph(); for (Int_t i=0;iSetPoint(i,i*0.1,100*sin(i*0.1+0.2)); auto frame = c->DrawFrame(0, -110, 2, 110); frame->GetXaxis()->SetTitle("X axis"); g->Draw("L*"); }