Display the various 2-d drawing options
void draw2dopt()
{
TF2 *f2 =
new TF2(
"f2",
"xygaus + xygaus(5) + xylandau(10)",-4,4,-4,4);
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};
TH2F h2(
"h2",
"xygaus + xygaus(5) + xylandau(10)",20,-4,4,20,-4,4);
Float_t xMin=0.67, yMin=0.875, xMax=0.85, yMax=0.95;
TCanvas c2h(
"c2h",
"2-d options",10,10,800,600);
c2h.Divide(2,2);
c2h.SetFillColor(cancolor);
c2h.cd(1);
c2h.cd(2);
c2h.cd(3);
c2h.cd(4);
c2h.Update();
TCanvas ctext(
"ctext",
"text option",50,50,800,600);
ctext.SetFillColor(cancolor);
ctext.SetGrid();
ctext.Update();
TCanvas cont(
"contours",
"contours",100,100,800,600);
cont.Divide(2,2);
cont.SetFillColor(cancolor);
cont.cd(1);
cont.cd(2);
cont.cd(3);
cont.cd(4);
cont.Update();
TCanvas lego(
"lego",
"lego options",150,150,800,600);
lego.Divide(2,2);
lego.SetFillColor(cancolor);
lego.cd(1);
lego.cd(2);
lego.cd(3);
lego.cd(4);
lego.Update();
TCanvas surf(
"surfopt",
"surface options",200,200,800,600);
surf.Divide(2,2);
surf.SetFillColor(cancolor);
surf.cd(1);
surf.cd(2);
surf.cd(3);
surf.cd(4);
surf.Update();
}
- Author
- Rene Brun
Definition in file draw2dopt.C.