Vectorize pruneOutsideBox
Vectorize pruneOutsideBox

the old code was rather complicated with while loops and complex logic.
Now we it is easy to understand which points are replaced by NaNs and which are removed. As the new code is vectorized it should be faster too.

matlab2tikz/matlab2tikz,egeerardyn/matlab2tikz,PeterPablo/matlab2tikz,matlab2tikz/matlab2tikz,egeerardyn/matlab2tikz