plot Piecewise