36 TPad *pad1 =
new TPad(
"pad1",
"This is pad1",0.05,0.52,0.95,0.97);
37 TPad *pad2 =
new TPad(
"pad2",
"This is pad2",0.05,0.02,0.95,0.47);
47 TPad *pad21 =
new TPad(
"pad21",
"First subpad of pad2",0.02,0.05,0.48,0.95,17,3);
48 TPad *pad22 =
new TPad(
"pad22",
"Second subpad of pad2",0.52,0.05,0.98,0.95,17,3);
71 TText *t21 =
new TText(0.05,0.8,
"This is pad21");
77 paves->
AddText(
"This is a PavesText");
78 paves->
AddText(
"You can add new lines");
79 paves->
AddText(
"Text formatting is automatic");
83 TText *t22 =
new TText(0.05,0.8,
"This is pad22");
94 float dxp2 = (0.9-xp2)/nloops;
95 float dyp2 = (0.7-yp2)/nloops;
96 float dxlc = (0.1-xlc)/nloops;
97 float dylc = (0.4-xlc)/nloops;
98 float dxt1 = (0.5-xt1)/nloops;
99 float dyt1 = (0.8-yt1)/nloops;
102 float t1ds = (t1end -
t10)/nloops;
104 for (
int i=0;i<nloops;i++) {
110 t1->
SetX(xt1+dxt1*i);
111 t1->
SetY(yt1+dyt1*i);
virtual void SetLineWidth(Width_t lwidth)
virtual void SetX2NDC(Double_t x2)
virtual void SetX(Double_t x)
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual TLine * DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw this line with new coordinates.
virtual Float_t GetTextSize() const
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual void Draw(Option_t *option="")
Draw this pavestext with its current attributes.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
Base class for several text objects.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
virtual void SetTextAlign(Short_t align=11)
A Pave (see TPave) with a text centered in the Pave.
virtual void SetLineColor(Color_t lcolor)
virtual void SetFillColor(Color_t fcolor)
R__EXTERN TBenchmark * gBenchmark
virtual void SetX1NDC(Double_t x1)
The most important graphics class in the ROOT system.
virtual void SetY2NDC(Double_t y2)
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.
virtual void SetTextColor(Color_t tcolor=1)
virtual void SetY(Double_t y)
virtual void SetTextSize(Float_t tsize=1)
virtual void Update()
Update canvas pad buffers.
A PaveText (see TPaveText) with several stacked paves.
void Modified(Bool_t flag=1)
virtual void SetY1NDC(Double_t y1)