https://github.com/root-project/root
Raw File
Tip revision: 7a1917fead85b88017cb13346529a19fec3d8351 authored by Unknown Author on 13 December 2000, 12:08:01 UTC
This commit was manufactured by cvs2svn to create tag 'v2-26-final'.
Tip revision: 7a1917f
arrow.C
{
   gROOT->Reset();
   c1 = new TCanvas("c1");
   c1->Range(0,0,1,1);
   TPaveLabel par(0.1,0.8,0.9,0.95,"Examples of various arrow formats");
   par.SetFillColor(42);
   par.Draw();
   TArrow ar1(0.1,0.1,0.1,0.7);
   ar1.Draw();
   TArrow ar2(0.2,0.1,0.2,0.7,0.05,"|>");
   ar2.SetAngle(40);
   ar2.SetLineWidth(4);
   ar2.Draw();
   TArrow ar3(0.3,0.1,0.3,0.7,0.05,"<|>");
   ar3.SetAngle(40);
   ar3.SetLineWidth(4);
   ar3.Draw();
   TArrow ar4(0.46,0.7,0.82,0.42,0.07,"|>");
   ar4.SetAngle(60);
   ar4.SetLineWidth(12);
   ar4.SetFillColor(2);
   ar4.Draw();
   TArrow ar5(0.4,0.25,0.95,0.25,0.15,"<|>");
   ar5.SetAngle(60);
   ar5.SetLineWidth(8);
   ar5.SetLineColor(4);
   ar5.SetFillStyle(3008);
   ar5.SetFillColor(2);
   ar5.Draw();
}
back to top