14 TCanvas *nut =
new TCanvas(
"nut",
"FirstSession", 100, 10, 700, 900);
15 nut->
Range(0, 0, 20, 24);
27 t.DrawText(2, 20.3,
"ROOT is based on CLING, a powerful C/C++ interpreter.");
28 t.DrawText(2, 19.3,
"Blocks of lines can be entered within {...}.");
29 t.DrawText(2, 18.3,
"Previous typed lines can be recalled.");
33 t.DrawText(3, 17,
"Root > float x=5; float y=7;");
34 t.DrawText(3, 16,
"Root > x*sqrt(y)");
35 t.DrawText(3, 14,
"Root > for (int i=2;i<7;i++) printf(\"sqrt(%d) = %f\\n\",i,sqrt(i));");
36 t.DrawText(3, 10,
"Root > TF1 f1(\"f1\",\"sin(x)/x\",0,10)");
37 t.DrawText(3, 9,
"Root > f1.Draw()");
40 t.DrawText(4, 15,
"(float) 13.2288f");
41 t.DrawText(4, 13.3,
"sqrt(2) = 1.414214");
42 t.DrawText(4, 12.7,
"sqrt(3) = 1.732051");
43 t.DrawText(4, 12.1,
"sqrt(4) = 2.000000");
44 t.DrawText(4, 11.5,
"sqrt(5) = 2.236068");
45 t.DrawText(4, 10.9,
"sqrt(6) = 2.449490");
47 TPad *pad =
new TPad(
"pad",
"pad", .2, .05, .8, .35);
51 TF1 *
f1 =
new TF1(
"f1",
"sin(x)/x", 0, 10);
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
The most important graphics class in the ROOT system.
void SetBorderSize(Short_t bordersize) override
void SetGrid(Int_t valuex=1, Int_t valuey=1) override
void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
Set world coordinate system for the pad.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
A Pave (see TPave) with a text centered in the Pave.
void Draw(Option_t *option="") override
Draw this pavelabel with its current attributes.