From 80e624b8fed0b3b32a7ae9bf54827b53e4414423 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Tue, 20 Nov 2012 13:31:22 +0000 Subject: [PATCH] added a style option which allows proper bar representation --- src/classes/PMusrCanvas.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/classes/PMusrCanvas.cpp b/src/classes/PMusrCanvas.cpp index 7b4be8e9..12db53f9 100644 --- a/src/classes/PMusrCanvas.cpp +++ b/src/classes/PMusrCanvas.cpp @@ -160,6 +160,8 @@ PMusrCanvas::PMusrCanvas() fXmax = 0.0; fYmin = 0.0; fYmax = 0.0; + + gStyle->SetHistMinimumZero(kTRUE); // needed to enforce proper bar option handling } //-------------------------------------------------------------------------- @@ -206,6 +208,8 @@ PMusrCanvas::PMusrCanvas(const Int_t number, const Char_t* title, fXmax = 0.0; fYmin = 0.0; fYmax = 0.0; + + gStyle->SetHistMinimumZero(kTRUE); // needed to enforce proper bar option handling } //-------------------------------------------------------------------------- @@ -258,6 +262,8 @@ PMusrCanvas::PMusrCanvas(const Int_t number, const Char_t* title, fXmax = 0.0; fYmin = 0.0; fYmax = 0.0; + + gStyle->SetHistMinimumZero(kTRUE); // needed to enforce proper bar option handling } //--------------------------------------------------------------------------