Fix issue when axis is outside plot area (#189)