tweaks to the graphing script