automating graphing