void Vectors2() { //=========Macro generated from canvas: Canvas_1/Canvas_1 //========= (Fri Dec 21 11:36:47 2018) by ROOT version6.05/02 TCanvas *Canvas_1 = new TCanvas("Canvas_1", "Canvas_1",460,353,959,564); Canvas_1->Range(0,0,1,1); Canvas_1->SetFillColor(0); Canvas_1->SetBorderMode(0); Canvas_1->SetBorderSize(2); Canvas_1->SetFrameBorderMode(0); TArrow *arrow = new TArrow(0.2351097,0.6152344,0.4890282,0.7753906,0.02,"->-"); arrow->SetFillColor(1); arrow->SetFillStyle(1001); arrow->SetLineWidth(2); arrow->Draw(); arrow = new TArrow(0.2351097,0.6171875,0.3573668,0.8710938,0.02,">"); arrow->SetFillColor(1); arrow->SetFillStyle(1001); arrow->SetLineWidth(2); arrow->Draw(); arrow = new TArrow(0.3552769,0.8710938,0.4890282,0.7734375,0.02,">"); arrow->SetFillColor(1); arrow->SetFillStyle(1001); arrow->SetLineWidth(2); arrow->Draw(); TEllipse *ellipse = new TEllipse(0.2967607,0.6742268,0.04,0.08,10,80,0); ellipse->SetNoEdges(); ellipse->Draw(); TLatex * tex = new TLatex(0.3772205,0.6289062,"P"); tex->SetTextSize(0.05286344); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.3458725,0.7445415,"\\theta"); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.2758621,0.7988281,"E_{1}"); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.4451411,0.8535156,"E_{2}"); tex->SetLineWidth(2); tex->Draw(); Canvas_1->Modified(); Canvas_1->cd(); Canvas_1->SetSelected(Canvas_1); Canvas_1->ToggleToolBar(); Canvas_1->SaveAs("Vectors2.pdf"); }