Add Lines and Functions to Graph