fixed graph draw method & horizontal shift