Added auto painting when graph is colored