Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
textangle.C
Go to the documentation of this file.
1{
2 auto *Ta = new TCanvas("Ta","Text angle",0,0,300,326);
3 Ta->Range(0,0,1,1);
6 l.DrawLine(0.1,0.1,0.9,0.1);
7 l.DrawLine(0.1,0.1,0.9,0.9);
11 m.DrawMarker(0.1,0.1);
15 a.DrawArc(0.1, 0.1, 0.2, 0.,45.,"only");
16 auto *tt = new TText(0.1,0.1,"Text angle is 45 degrees");
17 tt->SetTextAlign(11); tt->SetTextSize(0.1);
18 tt->SetTextAngle(45);
19 tt->Draw();
20 auto *t1 = new TLatex(0.3,0.18,"45^{o}");
21 t1->Draw();
22}
@ kRed
Definition Rtypes.h:66
@ kBlue
Definition Rtypes.h:66
Create an Arc.
Definition TArc.h:26
virtual TArc * DrawArc(Double_t x1, Double_t y1, Double_t radius, Double_t phimin=0, Double_t phimax=360, Option_t *option="")
Draw this arc with new coordinates.
Definition TArc.cxx:79
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
Definition TAttFill.h:39
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
Definition TAttLine.h:42
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Definition TAttLine.h:40
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Definition TAttMarker.h:38
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
Definition TAttMarker.h:40
The Canvas class.
Definition TCanvas.h:23
To draw Mathematical Formula.
Definition TLatex.h:18
Use the TLine constructor to create a simple line.
Definition TLine.h:22
virtual TLine * DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
Definition TLine.cxx:103
Manages Markers.
Definition TMarker.h:22
virtual TMarker * DrawMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
Definition TMarker.cxx:208
Base class for several text objects.
Definition TText.h:22
TMarker m
Definition textangle.C:8
TLine l
Definition textangle.C:4
TArc a
Definition textangle.C:12
auto * tt
Definition textangle.C:16
auto * t1
Definition textangle.C:20