28 auto c1 =
new TCanvas(
"c1",
"c1", 224, 330, 700, 527);
29 c1->Range(-0.125, -0.125, 1.125, 1.125);
31 auto tex =
new TLatex(0.06303724, 0.0194223,
"This text is opaque and this line is transparent");
35 auto arrow =
new TArrow(0.5555158, 0.07171314, 0.8939828, 0.6195219, 0.05,
"|>");
36 arrow->SetLineWidth(4);
41 Double_t x[10] = {0.5232808, 0.8724928, 0.9280086, 0.7059456, 0.7399714,
42 0.4659742, 0.8241404, 0.4838825, 0.7936963, 0.743553};
43 Double_t y[10] = {0.7290837, 0.9631474, 0.4775896, 0.6494024, 0.3555777,
44 0.622012, 0.7938247, 0.9482072, 0.3904382, 0.2410359};
46 graph->SetLineColorAlpha(46, 0.1);
47 graph->SetLineWidth(7);
51 auto ellipse =
new TEllipse(0.1740688, 0.8352632, 0.1518625, 0.1010526, 0, 360, 0);
52 ellipse->SetFillColor(30);
53 ellipse->SetLineColor(51);
54 ellipse->SetLineWidth(3);
58 ellipse =
new TEllipse(0.2985315, 0.7092105, 0.1566977, 0.1868421, 0, 360, 0);
59 ellipse->SetFillColorAlpha(9, 0.571);
60 ellipse->SetLineColorAlpha(8, 0.464);
61 ellipse->SetLineWidth(3);
65 tex =
new TLatex(0.04871059, 0.1837649,
"This text is transparent");
66 tex->SetTextColorAlpha(9, 0.476);
67 tex->SetTextSize(0.125);
68 tex->SetTextAngle(26.0);
72 auto marker =
new TMarker(0.03080229, 0.998008, 20);
73 marker->SetMarkerColorAlpha(2, .3);
74 marker->SetMarkerStyle(20);
75 marker->SetMarkerSize(1.7);
77 marker =
new TMarker(0.1239255, 0.8635458, 20);
78 marker->SetMarkerColorAlpha(2, .2);
79 marker->SetMarkerStyle(20);
80 marker->SetMarkerSize(1.7);
84 marker =
new TMarker(0.3047994, 0.6344622, 20);
85 marker->SetMarkerColor(2);
86 marker->SetMarkerStyle(20);
87 marker->SetMarkerSize(1.7);
Draw all kinds of Arrows.
A TGraph is an object made of two arrays X and Y with npoints each.
To draw Mathematical Formula.