Commit 6e0f338535d70611585616c715b0010849973415
1 parent
c3402180
Exists in
master
and in
87 other branches
rm 6485 ok
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
src/ParamOutputImpl/Plot/Range.cc
... | ... | @@ -20,20 +20,20 @@ Range extendRange(Range pRange) { |
20 | 20 | if(lMin < lMax) { |
21 | 21 | if ( (lMin < 1 && lMin > -1) && |
22 | 22 | (lMax < 1 && lMax > -1) ) { |
23 | - lMin = extend2LowerValue(lMin); | |
24 | - lMax = extend2UpperValue(lMax); | |
23 | + lMin = extend2LowerValue(lMin-0.05*(lMax-lMin)); | |
24 | + lMax = extend2UpperValue(lMax+0.05*(lMax-lMin)); | |
25 | 25 | } else { |
26 | - lMax = ceil(lMax); | |
27 | - lMin = floor(lMin); | |
26 | + lMax = ceil(lMax+0.05*(lMax-lMin)); | |
27 | + lMin = floor(lMin-0.05*(lMax-lMin)); | |
28 | 28 | } |
29 | 29 | } else { |
30 | 30 | if ( (lMin < 1 && lMin > -1) && |
31 | 31 | (lMax < 1 && lMax > -1) ) { |
32 | - lMin = extend2UpperValue(lMin); | |
33 | - lMax = extend2LowerValue(lMax); | |
32 | + lMin = extend2UpperValue(lMin+0.05*(lMax-lMin)); | |
33 | + lMax = extend2LowerValue(lMax-0.05*(lMax-lMin)); | |
34 | 34 | } else { |
35 | - lMin = ceil(lMin); | |
36 | - lMax = floor(lMax); | |
35 | + lMin = ceil(lMin+0.05*(lMax-lMin)); | |
36 | + lMax = floor(lMax-0.05*(lMax-lMin)); | |
37 | 37 | } |
38 | 38 | } |
39 | 39 | ... | ... |