draw graph with colors