Graphing a function in three dimensions