Path correction in MATLAB plot function.