Graphing using the intercepts