Fix an embarassing bug, where only the last line segment would be simplified.
Fix an embarassing bug, where only the last line segment would be simplified.

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