Refactoring graphs drawing.