From 3afcafcaa5760ca7ea8dbf95f81b509006db1053 Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Tue, 17 Jan 2006 14:59:12 +0000 Subject: [PATCH] From Lorenzo: Fix in THistpainter::PaintStat2. the NDF in the stats box was not always correct for 2-d functions. git-svn-id: http://root.cern.ch/svn/root/trunk@13842 27541ba8-7e3a-0410-8455-c3a389f83636 --- histpainter/src/THistPainter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/histpainter/src/THistPainter.cxx b/histpainter/src/THistPainter.cxx index 8daf1b1d657..3c454155444 100644 --- a/histpainter/src/THistPainter.cxx +++ b/histpainter/src/THistPainter.cxx @@ -1,4 +1,4 @@ -// @(#)root/histpainter:$Name: $:$Id: THistPainter.cxx,v 1.238 2005/12/19 14:08:29 couet Exp $ +// @(#)root/histpainter:$Name: $:$Id: THistPainter.cxx,v 1.239 2006/01/09 10:35:12 couet Exp $ // Author: Rene Brun 26/08/99 /************************************************************************* @@ -4964,7 +4964,7 @@ void THistPainter::PaintStat2(Int_t dostat, TF1 *fit) // Draw Fit parameters if (fit) { - Int_t ndf = fit->GetNumberFitPoints() - fit->GetNpar(); + Int_t ndf = fit->GetNDF(); sprintf(t,"#chi^{2} / ndf = %6.4g / %d",(Float_t)fit->GetChisquare(),ndf); stats->AddText(t); for (Int_t ipar=0;ipar<fit->GetNpar();ipar++) { -- GitLab