Re: [ROOT] fitting problem using rightclick and FitPanel with version 3.10.02

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jan 27 2004 - 15:57:47 MET


Hi Michael,

Could you try to reproduce this problem with a simple script using only
TCanvas/Tpad?

Rene Brun

"Michael T. Gericke" wrote:
> 
> Hi,
> 
> I recently installed the newest version of root
> and I am having problems with the "FitPanel":
> 
> I am writing a compiled program and using an embedded
> canvas, as in:
> 
> fDlgFrame = new TGCompositeFrame(this, 600, 400, kVerticalFrame);
> fDlgLayout = new TGLayoutHints(kLHintsTop | kLHintsLeft, 5, 5, 5, 5);
> fCnvFrame = new TGCompositeFrame(fDlgFrame, 600, 400, kHorizontalFrame);
> fCnvLayout = new TGLayoutHints(kLHintsBottom | kLHintsLeft |
>                                kLHintsExpandX | kLHintsExpandY,
>                                5, 5, 5, 5);
> 
> fPlotCanvas = new TRootEmbeddedCanvas("pC", fCnvFrame, 600, 400);
> fCnvFrame->AddFrame(fPlotCanvas, fCnvLayout);
> fDlgFrame->AddFrame(fCnvFrame, fCnvLayout);
> fPlotCanvas->GetCanvas()->SetBorderMode(0);
> 
> etc..
> 
> When I compile the program with version 3.05.07, plot a histogram
> and use FitPanel to fit it with a function, the fit just appears
> on top of the histogram.
> 
> If I compile the exact same program using version 3.10.02 and try
> to fit the histogram, the fit function does not show up. I can make
> is show up by selecting "SetDrawOption()" from the same menu, but then
> it screws up my axis, drawing new values above the old ones...
> 
> Does anyone know why this happens?
> 
> Thanks,
> 
> Michael
> 
> --
> Michael T. Gericke <mgericke@cyclonus.lanl.gov>



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET