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

From: Michael T. Gericke (mgericke@cyclonus.lanl.gov)
Date: Mon Mar 08 2004 - 17:53:51 MET


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);                             


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
it 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?



Michael T. Gericke <mgericke@cyclonus.lanl.gov>
Michael T. Gericke <mgericke@cyclonus.lanl.gov>

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