ROOT  6.06/09
Reference Guide
splitline.C
Go to the documentation of this file.
2 {
3  TCanvas *F = new TCanvas("script","Splitline",700,100);
4 
5  TLatex Tl;
6  Tl.SetTextSize(0.3);
7  Tl.SetTextAlign(12);
8  TLatex Tt;
9  Tt.SetTextSize(0.3);
10  Tt.SetTextFont(82);
11  Tt.SetTextAlign(12);
12 
13  float y, x1, x2;
14  y = 0.50; x1 = 0.02; x2 = x1+0.7;
15 
16  Tt.DrawText(x1, y, "#splitline{21 April 2003}{14:02:30}");
17  Tl.DrawLatex(x2, y, "#splitline{21 April 2003}{14:02:30}");
18 
19  return F;
20 }
TCanvas * splitline()
Definition: splitline.C:1
virtual void SetTextFont(Font_t tfont=62)
Definition: TAttText.h:59
static const double x2[5]
To draw Mathematical Formula.
Definition: TLatex.h:33
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
Definition: TLatex.cxx:1901
virtual void SetTextAlign(Short_t align=11)
Definition: TAttText.h:55
#define F(x, y, z)
The Canvas class.
Definition: TCanvas.h:48
static const double x1[5]
Double_t y[n]
Definition: legend1.C:17
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
Definition: TText.cxx:171
virtual void SetTextSize(Float_t tsize=1)
Definition: TAttText.h:60