graphing functions, including step and piecewise