16   TF2 *f2 = 
new TF2(
"f2",
"xygaus + xygaus(5) + xylandau(10)",-4,4,-4,4);
 
   17   Double_t params[] = {130,-1.4,1.8,1.5,1, 150,2,0.5,-2,0.5, 3600,-2,0.7,-3,0.3};
 
   19   auto h2 = 
new TH2F(
"h2",
"xygaus + xygaus(5) + xylandau(10)",20,-4,4,20,-4,4);
 
   21   h2->FillRandom(
"f2",40000);
 
   25   Float_t xMin=0.67, yMin=0.875, xMax=0.85, yMax=0.95;
 
   27   auto c2h = 
new TCanvas(
"c2h",
"2-d options",10,10,800,600);
 
   29   c2h->SetFillColor(cancolor);
 
   31   h2->Draw();       pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"SCAT",
"brNDC");
 
   41   auto ctext = 
new TCanvas(
"ctext",
"text option",50,50,800,600);
 
   43   ctext->SetFillColor(cancolor);
 
   45   h2->Draw(
"text"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"TEXT",
"brNDC");
 
   49   auto cont = 
new TCanvas(
"contours",
"contours",100,100,800,600);
 
   52   cont->SetFillColor(cancolor);
 
   54   h2->Draw(
"contz"); pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"CONTZ",
"brNDC");
 
   67   auto lego = 
new TCanvas(
"lego",
"lego options",150,150,800,600);
 
   69   lego->SetFillColor(cancolor);
 
   71   h2->Draw(
"lego");     pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"LEGO",
"brNDC");
 
   75   gPad->SetTheta(61); 
gPad->SetPhi(-82);
 
   76   h2->
Draw(
"surf1pol"); pl.
DrawPaveLabel(xMin,yMin,xMax+0.05,yMax,
"SURF1POL",
"brNDC");
 
   78   gPad->SetTheta(21); 
gPad->SetPhi(-90);
 
   79   h2->
Draw(
"surf1cyl"); pl.
DrawPaveLabel(xMin,yMin,xMax+0.05,yMax,
"SURF1CYL",
"brNDC");
 
   83   auto surf = 
new TCanvas(
"surfopt",
"surface options",200,200,800,600);
 
   85   surf->SetFillColor(cancolor);
 
   87   h2->Draw(
"surf1");   pl.
DrawPaveLabel(xMin,yMin,xMax,yMax,
"SURF1",
"brNDC");
 
R__EXTERN TStyle * gStyle
 
virtual void SetParameters(const Double_t *params)
 
A 2-Dim function with parameters.
 
2-D histogram with a float per channel (see TH1 documentation)}
 
A Pave (see TPave) with a text centered in the Pave.
 
virtual TPaveLabel * DrawPaveLabel(Double_t x1, Double_t y1, Double_t x2, Double_t y2, const char *label, Option_t *option="")
Draw this pavelabel with new coordinates.
 
void Draw(Option_t *option="") override
Draw this pavelabel with its current attributes.
 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
 
void SetFrameFillColor(Color_t color=1)
 
void SetCanvasColor(Color_t color=19)