Change printing of graph