completing the graphing functions of choose machine screen