diff --git a/hist/hist/src/TKDE.cxx b/hist/hist/src/TKDE.cxx index 7041f861b62375e033d09f0bae5c7d507a04a4a4..14ed2343f67ac7ce933537656029ec12b611b021 100644 --- a/hist/hist/src/TKDE.cxx +++ b/hist/hist/src/TKDE.cxx @@ -753,6 +753,7 @@ TGraphErrors* TKDE::GetGraphWithErrors(UInt_t npx, double xmin, double xmax) { for (UInt_t i = 0; i <= n; ++i) { x[i] = xmin + i * (xmax - xmin) / n; y[i] = (*this)(x[i]); + ex[i] = 0; ey[i] = this->GetError(x[i]); } TGraphErrors* ge = new TGraphErrors(n, &x[0], &y[0], &ex[0], &ey[0]);