From b808aa6873a125fb7c8d95d49d03f855cc2c4692 Mon Sep 17 00:00:00 2001 From: Lorenzo Moneta <Lorenzo.Moneta@cern.ch> Date: Thu, 5 Mar 2020 17:31:43 +0100 Subject: [PATCH] Use option "N" do not plot, do not store fit function when fitting the internal histograms in TH2::FitSlicesX/Y This fixes ROOT-10601 --- hist/hist/src/TH2.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hist/hist/src/TH2.cxx b/hist/hist/src/TH2.cxx index 244a1dc9259..911b3b7c64f 100644 --- a/hist/hist/src/TH2.cxx +++ b/hist/hist/src/TH2.cxx @@ -771,6 +771,9 @@ void TH2::DoFitSlices(bool onX, Long64_t nentries; // in case of sliding merge nstep=1, i.e. do slices starting for every bin // now do not slices case with overflow (makes more sense) + // when fitting add the option "N". We don;t want to display and store the function + // for the temporary histograms that are created and fitted + opt += " n "; for (bin=firstbin;bin+ngroup-1<=lastbin;bin += nstep) { TH1D *hp; if (onX) -- GitLab