Hi Mike, You cannot do this for the time being by calling an existing function. You have to create a TPaveText yourself and fill it with the parameter names/values as it is done in THistPainter::PaintStat. I could implement a new function TPaveText *THistPainter::GetPaveStats(Int_t option, TF1 *fit) (same calling sequence as PaintStat, but returning a TPaveText instead of painting it. You could draw the returned object at a position under your control. Rene Brun On Mon, 25 Feb 2002, Mike Kordosky wrote: > Hi, > > I am doing a double gaussian fit, where I fit two subranges of a histogram > to estimate the parameters for an eventual gaus+gaus fit. I cannot seem > to figure out how to get the stats box to display the parameter results of > the final fit. It looks like it always displays the result from the first > fit. How does one tell the HistPainter (or whatever appropriate object) to > use a certain function print the parameters? I tried: > > hist->GetPainter()->PaintStat(1, myfunc); > > but nothing seemed to happen... > > Can anyone help? I include my macro for reference. > > Mike Kordosky > > -- > Graduate Research Assistant // High Energy Physics Lab > kordosky@hep.utexas.edu // University of Texas at Austin > kordosky@fnal.gov // > ph: (512) 471-8426 (RLM Lab, Office) > (512) 475-8673 (ENS Lab) >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET