fixed up graph printing