added a style option which allows proper bar representation

This commit is contained in:
suter_a 2012-11-20 13:31:22 +00:00
parent 5589209ffc
commit 80e624b8fe

View File

@ -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
}
//--------------------------------------------------------------------------