graph piecewise function