fit prediction into window, put rescaled into the middle
refs #584
Merge branch 'master' of ssh://git.nimitz.pl/pisak