[ROOT] TH2D::DrawCopy()

From: C.Plettner (plettner@pktw09.phy.tu-dresden.de)
Date: Thu Feb 22 2001 - 13:16:17 MET


Hello everybody!


I am trying to use in my code the function  
TH2D::DrawCopy(*option) but unfortunately the
histogram output does not react on the option I 
am giving. So it is always a scatter plot although
I ask for lego2. If I look now to the code


 TH1 *TH2D::DrawCopy(Option_t *option)
{
   TString opt = option;
   opt.ToLower();
   if (gPad && !opt.Contains("same")) gPad->Clear();
   TH2D *newth2 = (TH2D*)Clone();
   newth2->SetDirectory(0);
   newth2->SetBit(kCanDelete);
   newth2->AppendPad();
   return newth2;
}

I find that somehow my option as long as it is not
"same" is lost. My question is whether this feature 
has same deeper meaning or not.

In the RootTalk Digest I have found a question about the
same stuff (TH2D::DrawCopy() ignores options) but I 
have not found an answer.


Ciao

Christoph

------------------------------------------------------------------------------
Christoph Plettner                          C.Plettner@physik.tu-dresden.de
Institut fuer Kern- und Teilchenphysik      Tel.: 0351/463-3905
Technische Universitaet Dresden             ASB, Raum E9            
Zellescher Weg 19 
D-01069 Dresden
------------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:37 MET