Fixed getAbove and getBelow functions

Fixed minor bug at plot boundaries.