Hi,
In the mailing list I found the info, that TH2D::DrawCopy(Option_t ...)
should work with different options since v3.00.
(see: [ROOT] TH2D::DrawCopy() C.Plettner (Thu Feb 22 2001 - 13:16:17 MET)
Re: [ROOT] TH2D::DrawCopy() Rene Brun ... )
But I can't reproduce this ...
When I try the following example with TH2F, it works as expected, but
with TH2D the "DrawCopy"-image is only a scatter plot...
{
gROOT->Reset();
//TH2F h2("h2","xygaus + xygaus(5) + xylandau(10)",20,-4,4,20,-4,4);
TH2D h2("h2","xygaus + xygaus(5) + xylandau(10)",20,-4,4,20,-4,4);
gStyle->SetOptStat(0);
gStyle->SetPalette(1);
gStyle->SetCanvasColor(33);
gStyle->SetFrameFillColor(18);
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};
f2.SetParameters(params);
h2.SetFillColor(46);
h2.FillRandom("f2",40000);
TPaveLabel pl;
Float_t x1=0.67, y1=0.875, x2=0.85, y2=0.95;
Int_t cancolor = 17;
// Draw()
TCanvas surf("Draw()","Draw()",200,200,800,600);
h2.Draw("surf1");
// DrawCopy()
TCanvas test("DrawCopy()","DrawCopy()",200,200,800,600);
h2.DrawCopy("surf1");
}
Did I miss something?
Andreas
System:
ROOT v3.01.00
SuSE 7.1
----------------------------------------------------------------------
Andreas Zoglauer
MPI fuer extraterrestrische Physik Phone: +49/89-30000-3848
Postfach 1312 Fax: +49/89-30000-3569
85741 Garching, Germany Email: zog@mpe.mpg.de
----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:45 MET