ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
textangle.C
Go to the documentation of this file.
1 {
2  TCanvas *Ta = new TCanvas("Ta","Text angle",0,0,300,326);
3  Ta->Range(0,0,1,1);
4  TLine *l = new TLine();
5  l->SetLineColor(kRed);
6  l->DrawLine(0.1,0.1,0.9,0.1);
7  l->DrawLine(0.1,0.1,0.9,0.9);
8  TMarker *m = new TMarker();
9  m->SetMarkerStyle(20);
11  m->DrawMarker(0.1,0.1);
12  TArc *a = new TArc();
13  a->SetFillStyle(0);
14  a->SetLineColor(kBlue); a->SetLineStyle(3);
15  a->DrawArc(0.1, 0.1, 0.2, 0.,45.,"only");
16  TText *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  TLatex *t1 = new TLatex(0.3,0.18,"45^{o}");
21  t1->Draw();
22  return Ta;
23 }
virtual void 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 DrawMarker(Double_t x, Double_t y)
Draw this marker with new coordinates.
Definition: TMarker.cxx:148
return Ta
Definition: textangle.C:22
Definition: Rtypes.h:61
virtual TLine * DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
Definition: TLine.cxx:93
Manages Markers.
Definition: TMarker.h:40
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
Definition: TObject.cxx:254
virtual void SetFillStyle(Style_t fstyle)
Definition: TAttFill.h:52
To draw Mathematical Formula.
Definition: TLatex.h:33
virtual void SetMarkerColor(Color_t mcolor=1)
Definition: TAttMarker.h:51
Base class for several text objects.
Definition: TText.h:42
virtual void SetTextAlign(Short_t align=11)
Definition: TAttText.h:55
Create an Arc.
Definition: TArc.h:29
virtual void SetLineColor(Color_t lcolor)
Definition: TAttLine.h:54
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
Definition: TPad.cxx:4623
virtual void SetTextAngle(Float_t tangle=0)
Definition: TAttText.h:56
A simple line.
Definition: TLine.h:41
virtual void SetMarkerStyle(Style_t mstyle=1)
Definition: TAttMarker.h:53
The Canvas class.
Definition: TCanvas.h:48
virtual void SetLineStyle(Style_t lstyle)
Definition: TAttLine.h:56
Definition: Rtypes.h:61
virtual void SetTextSize(Float_t tsize=1)
Definition: TAttText.h:60