{ auto c = new TCanvas("c","c",0,0,500,500); c->Range(-11,-11,11,11); auto f2 = new TF1("x2","x*x",-10,10); f2->SetLineColor(kRed); f2->Draw("same"); auto f3 = new TF1("x3","x*x*x",-10,10); f3->SetLineColor(kBlue); f3->Draw("same"); // Draw the axis with arrows auto ox = new TGaxis(-10,0,10,0,-10.,10.,510,"+-S>"); ox->SetTickSize(0.009); ox->SetLabelFont(42); ox->SetLabelSize(0.025); ox->Draw(); auto oy = new TGaxis(0,-10,0,10,-10,10,510,"+-S>"); oy->SetTickSize(0.009); oy->SetLabelFont(42); oy->SetLabelSize(0.025); oy->Draw(); }