U5: refactor spline plotting