Re: [ROOT] Plotting user-defined fitting function in a graph

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Sep 24 2002 - 20:42:22 MEST


Hi Steffen,

After having called graph->Fit(...
you can graph->Draw("ap"); //for example
This will show the associated fit function.
As an alternative, you can also superimpose
the function of the graph with
  ffit->Draw("lsame")

Rene Brun

On Tue, 24 Sep 2002, Steffen Grohmann wrote:

> Hello,
> 
> I have fitted data in a graph with a user-defined fitting function "ffit".
> Unfortunately, I do not arrive to plot the fitted function in the same graph
> where I have my data points. The command "ffit->Draw();" creates a new
> canvas on top of my original graph.
> 
> How can this be solved?
> 
> Regards, Steffen
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:11 MET