From 6e0f338535d70611585616c715b0010849973415 Mon Sep 17 00:00:00 2001 From: Hacene SI HADJ MOHAND Date: Wed, 24 Jul 2019 15:29:07 +0200 Subject: [PATCH] rm 6485 ok --- src/ParamOutputImpl/Plot/Range.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ParamOutputImpl/Plot/Range.cc b/src/ParamOutputImpl/Plot/Range.cc index 1e4dd52..e7316be 100644 --- a/src/ParamOutputImpl/Plot/Range.cc +++ b/src/ParamOutputImpl/Plot/Range.cc @@ -20,20 +20,20 @@ Range extendRange(Range pRange) { if(lMin < lMax) { if ( (lMin < 1 && lMin > -1) && (lMax < 1 && lMax > -1) ) { - lMin = extend2LowerValue(lMin); - lMax = extend2UpperValue(lMax); + lMin = extend2LowerValue(lMin-0.05*(lMax-lMin)); + lMax = extend2UpperValue(lMax+0.05*(lMax-lMin)); } else { - lMax = ceil(lMax); - lMin = floor(lMin); + lMax = ceil(lMax+0.05*(lMax-lMin)); + lMin = floor(lMin-0.05*(lMax-lMin)); } } else { if ( (lMin < 1 && lMin > -1) && (lMax < 1 && lMax > -1) ) { - lMin = extend2UpperValue(lMin); - lMax = extend2LowerValue(lMax); + lMin = extend2UpperValue(lMin+0.05*(lMax-lMin)); + lMax = extend2LowerValue(lMax-0.05*(lMax-lMin)); } else { - lMin = ceil(lMin); - lMax = floor(lMax); + lMin = ceil(lMin+0.05*(lMax-lMin)); + lMax = floor(lMax-0.05*(lMax-lMin)); } } -- libgit2 0.21.2