Finish graph plotting script.